Home

Byte

The byte class represents a 1-byte value.

Operations

Abs

Returns the absolute value

function : public : native : Abs() ~ Byte
Return
TypeDescription
Byteabsolute value

CRC32

Calculates the signed CRC32 value for the stream

function : public : CRC32() ~ Int
Return
TypeDescription
Intsigned CRC32

Compress

Compresses a byte stream using zlib

function : public : Compress() ~ Byte[]
Return
TypeDescription
Byte[]compressed bytes

Error

Prints error value

function : public : Error() ~ Nil

ErrorLine

Prints error value with newline

function : public : ErrorLine() ~ Nil

Max

Returns the largest byte value

function : public : Max(l:Byte, r:Byte) ~ Byte
Parameters
NameTypeDescription
lBytevalue to compare
rBytevalue to compare

Return
TypeDescription
Bytelargest byte value

Min

Returns the smallest byte value

function : public : Min(l:Byte, r:Byte) ~ Byte
Parameters
NameTypeDescription
lBytevalue to compare
rBytevalue to compare

Return
TypeDescription
Bytesmallest byte value

Print

Prints value

function : public : Print() ~ Nil

PrintLine

Prints value with newline

function : public : PrintLine() ~ Nil

ToBinaryString

Returns a binary string representation of the value

function : public : native : ToBinaryString() ~ String
Return
TypeDescription
Stringbinary string representation of the value

ToHexString

Returns a hexadecimal string representation of the value

function : public : native : ToHexString() ~ String
Return
TypeDescription
Stringhexadecimal string representation of the value

ToString

Returns a string representation of the value

function : public : native : ToString() ~ String
Return
TypeDescription
Stringstring representation of the value

Uncompress

Uncompresses a byte stream using zlib

function : public : Uncompress() ~ Byte[]
Return
TypeDescription
Byte[]uncompressed bytes