From Xojo Documentation


MemoryBlock.LeftB(Bytes as Integer) As MemoryBlock

Supported for all project types and targets.

Returns a new MemoryBlock of the specified size using the same endianness as the source MemoryBlock.

Sample Code

This example uses LeftB to set the value of a new MemoryBlock.

Var m As New MemoryBlock(8)
m.Int64value(0) = 256495900

Var n As New MemoryBlock(8)
n = m.LeftB(8)