MemoryBlock.RightB

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

MemoryBlock.RightB(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 RightB 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.RightB(8)