Lines Matching refs:chars
52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) {
54 cb.put(chars, offset, length);
62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) {
64 cb.put(chars, offset, length);
72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) {
74 cb.put(chars, offset, length);
82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) {
87 char ch = chars[i];
102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) {
103 if (bytes == null || chars == null) {
110 chars[i] = (ch <= 0x7f) ? ch : REPLACEMENT_CHAR;
121 public static void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars) {
122 if (bytes == null || chars == null) {
127 chars[i] = (char) (bytes[start++] & 0xff);