With the classic framework I can create a new memoryBlock(0) with a zero size, create a binary stream from that and then write to it happily until Ive saved all the data, then close the binary stream and the memory block is sized and ready for me to send down a socket or whatever.
I dont seem to be able to do that with the new framework objects for iOS?
if I do this I get an OutOfBounds exception as soon as Im writing beyond what I pre-allocated in the dim statement:
[code]dim m as new MutableMemoryBlock( 0)
dim b as BinaryStream
b = new BinaryStream( m)
label1.text = m.UInt8Value( 2).toText[/code]
so in that case on the very first write. The whole point is that I dont know what the size of the final product will be until Im done writing to the stream. Is there no way to write into an open ended memory stream like that on iOS with the new framework? Or am I misunderstanding something basic again?