Android Utililty Methods Char to Byte Array Convert

List of utility methods to do Char to Byte Array Convert

Description

The list of methods to do Char to Byte Array Convert are organized into topic(s).

Method

bytecharToByte(char c)
Convert char to byte
return (byte) "0123456789ABCDEF".indexOf(c);
bytecharToByte(char c)
char To Byte
return (byte) "0123456789ABCDEF".indexOf(c);
byte[]getBytes(char data)
get Bytes
byte[] bytes = new byte[2];
bytes[0] = (byte) (data);
bytes[1] = (byte) (data >> 8);
return bytes;