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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Xojo.Core.MemoryBlock.Constructor(bytes() As Byte)

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

Sample Code

Dim bytes() As Byte
bytes.Append(&hff)
bytes.Append(&hff)
bytes.Append(&hff)

Dim b As New Xojo.Core.MemoryBlock(bytes)