I have a byte() array that consists of two bytes (verified by printing the uBound, which is 1); however, when I append it to a fresh mutableMemoryBlock… the size of that becomes 3, with mutableMemoryBlock.uInt8Value(0) = 0 every time. Is this expected?
This didn’t appear to be a bug after-all, my apologies. You have to define the space used with the mutableMemoryBlock first, such as:
returnContent = new mutableMemoryBlock(2)
I was constructing it with one byte bigger than the byte() array size. Since I was appending the data, it only make common-sense (which I was obviously lacking at the time) that the first byte in the memoryBlock was 0.