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

From Xojo Documentation

(Redirected from Xojo.Core.MutableMemoryBlock.Constructor(bytes() As Byte))
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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)