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

From Xojo Documentation

Revision as of 17:28, 11 August 2019 by Gperlman (talk | contribs)
(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

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

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