It's occasionally useful to be able to poke around in things as arrays of bytes so this library lets you do it.
It can transform arrays of primitive types to and from arrays of bytes with the "endian-ness" of the conversion specified. If you need endian-ness you will either know about it or rather quickly find out.
Byte arrays can be transformed to and from a hexadecimal string representation.
Strings can be transformed to and from arrays of Bytes using specified encodings and to and from arrays of Chars.
An array copy method is thrown in for good measure.
EDIT :- Version 1.1 posted. See post #4 for details.
Download link: www.b4x.com/android/files/ByteConverter1.1.zip
It can transform arrays of primitive types to and from arrays of bytes with the "endian-ness" of the conversion specified. If you need endian-ness you will either know about it or rather quickly find out.
Byte arrays can be transformed to and from a hexadecimal string representation.
Strings can be transformed to and from arrays of Bytes using specified encodings and to and from arrays of Chars.
An array copy method is thrown in for good measure.
EDIT :- Version 1.1 posted. See post #4 for details.
Download link: www.b4x.com/android/files/ByteConverter1.1.zip
Last edited by a moderator: