Press on the image to return to the main documentation page.
ByteConverter
This library contains a ByeConverter object that can transform arrays of primitive types to and from arrays of Bytes specifying the "endian-ness" of the conversion and also provides for the copying of part or all of the contents of one array to another array of the same type.
Byte arrays can be transformed to and from a hexadecimal string representation and Strings can be transformed to and from arrays of Bytes using specified encodings.
Copies count elements from the srcoffset in the src array to destoffset in the dest array. The arrays need to be of the same type otherwise an ArrayStoreException is thrown.
CharsFromBytes (bytes() AsByte) AsChar()
Takes an array of Bytes and returns an array of Chars converted from that array.
CharsToBytes (vals() AsChar) AsByte()
Takes an array of Chars and returns an array of Bytes converted from that array.
DoublesFromBytes (bytes() AsByte) AsDouble()
Takes an array of Bytes and returns an array of Doubles converted from that array.
DoublesToBytes (vals() AsDouble) AsByte()
Takes an array of Doubles and returns an array of Bytes converted from that array.
FloatsFromBytes (bytes() AsByte) AsFloat()
Takes an array of Bytes and returns an array of Floats converted from that array.
FloatsToBytes (vals() AsFloat) AsByte()
Takes an array of Floats and returns an array of Bytes converted from that array.
FromChars (chars() AsChar) AsString
Returns a string converted from the specified array of characters.
HexFromBytes (bytes() AsByte) AsString
Returns a string containing the representation in hexadecimal of the bytes in a byte array.
HexToBytes (hexAsString) AsByte()
Returns an array of bytes containing the data represented by a hexadecimal string. The string can be upper or lower case.
IntsFromBytes (bytes() AsByte) AsInt()
Takes an array of Bytes and returns an array of Ints converted from that array.
IntsToBytes (vals() AsInt) AsByte()
Takes an array of Ints and returns an array of Bytes converted from that array.
LittleEndianAsBoolean
Gets or sets the endian-ness of byte conversions to and from other primitive values. The default for Android is Big_Endian, Windows PCs are Little_Endian.
LongsFromBytes (bytes() AsByte) AsLong()
Takes an array of Bytes and returns an array of Longs converted from that array.
LongsToBytes (vals() AsLong) AsByte()
Takes an array of Longs and returns an array of Bytes converted from that array.
ShortsFromBytes (bytes() AsByte) AsShort()
Takes an array of Bytes and returns an array of Shorts converted from that array.
ShortsToBytes (vals() AsShort) AsByte()
Takes an array of Shorts and returns an array of Bytes converted from that array.