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

Var bytes() As Byte
bytes.AddRow(&hff)
bytes.AddRow(&hff)
bytes.AddRow(&hff)

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