Xojo.Core.MemoryBlock.Constructor(bytes() As Byte)
From Xojo Documentation
(Redirected from Xojo.Core.MutableMemoryBlock.Constructor(bytes() As Byte))Constructor
Creates a MemoryBlock from an existing Byte array.
Notes
The contents of the Byte array are copied into the MemoryBlock. Mutating the MemoryBlock has no effect on the original array.
Exceptions
- NilObjectException if bytes() is Nil.
- OutOfMemoryException if there is insufficient memory to copy the byte array and there is sufficient memory to recover from this error.