All Bundles

ByteRef

Holds an byte value

Implements: Compare, Clone, Stringify, Primitive

Operations

New

Default constructor

New()

Copy constructor

New(value:Byte)
Parameters
NameTypeDescription
valueBytebyte value

Clone

Clones the object instance

method : public : Clone() ~ System.ByteRef
Return
TypeDescription
ByteRefcloned the object instance

Compare

Compares two objects

method : public : native : Compare(rhs:System.Compare) ~ Int
Parameters
NameTypeDescription
rhsComparecompare object

Return
TypeDescription
Int0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater

FromArray

Creates an array of references from primitives

function : FromArray(input:Byte[]) ~ ByteRef[]
Parameters
NameTypeDescription
inputByte[]array of primitives

Return
TypeDescription
ByteRef[]an array of references

Get

Get byte value

method : public : Get() ~ Byte
Return
TypeDescription
Bytebyte value

HashID

Returns a unique hash ID for a byte

method : public : HashID() ~ Int
Return
TypeDescription
Inthash ID

Set

Set byte value

method : public : Set(value:Byte) ~ Nil
Parameters
NameTypeDescription
valueBytebyte value

ToArray

Creates an array of primitives from references

function : ToArray(input:ByteRef[]) ~ Byte[]
Parameters
NameTypeDescription
inputByteRef[]array of references

Return
TypeDescription
Byte[]an array of primitives