toByteArray

Encodes a Double into a ByteArray

Return

ByteArray representing the Double

Parameters

byteOrder

ByteOrder to use for encoding.


Encodes a Float into a ByteArray

Return

ByteArray representing the Float

Parameters

byteOrder

ByteOrder to use for encoding.


Encodes this Int24 into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the Int24 is encoded


Encodes this Int into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the Int is encoded


Encodes this Long into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the Long is encoded


Encodes this MedFloat16 into a ByteArray.

Return

the encoded ByteArray.


Encodes this MedFloat32 into a ByteArray.

Return

the encoded ByteArray.


Encodes this Short into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the Short is encoded


Encodes a String to a ByteArray using the given StringEncodingSettings and ByteOrder.

Return

The encoded ByteArray

Parameters

settings

the StringEncodingSettings to apply to the encoding.

order

the ByteOrder to use. When passing ByteOrder.MOST_SIGNIFICANT_FIRST the first character will be at the end of the array.

Throws

if the string contains a null character and StringEncodingSettings.NullTerminated is used, or if the length of the string cannot be encoded by StringEncodingSettings.LengthPrefix


Encodes this UByte into a ByteArray.


Encodes this UInt24 into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the UInt24 is encoded


Encodes this UInt into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the UInt is encoded


Encodes this ULong into a ByteArray.

Return

the encoded ByteArray.

Parameters

byteOrder

the ByteOrder in which the ULong is encoded