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

From Xojo Documentation

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)