Xojo.Core.MemoryBlock.Constructor(bytes() As Byte)
From Xojo Documentation
Revision as of 14:46, 24 August 2018 by PLefebvre (talk | contribs) (Created page with "{{ConstructorBox | name=Constructor | owner=Xojo.Core.MemoryBlock | ownertype=class | scope=public | parameters=bytes() As Byte }} {{Description | text = Creates a Mem...")
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
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.