Home | History | Annotate | Download | only in java

Lines Matching refs:length

52     public static byte[] toAsciiBytes(char[] chars, int offset, int length) {
53 CharBuffer cb = CharBuffer.allocate(length);
54 cb.put(chars, offset, length);
62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) {
63 CharBuffer cb = CharBuffer.allocate(length);
64 cb.put(chars, offset, length);
72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) {
73 CharBuffer cb = CharBuffer.allocate(length);
74 cb.put(chars, offset, length);
82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) {
83 byte[] result = new byte[length * 2];
84 int end = offset + length;
102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) {
108 for (int i = 0; i < length; ++i) {
121 public static void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars) {
126 for (int i = 0; i < length; ++i) {