Home
last modified time | relevance | path

Searched refs:resultArr (Results 1 – 3 of 3) sorted by relevance

/external/flatbuffers/java/com/google/flatbuffers/
DUtf8.java104 static void handleOneByte(byte byte1, char[] resultArr, int resultPos) { in handleOneByte() argument
105 resultArr[resultPos] = (char) byte1; in handleOneByte()
109 byte byte1, byte byte2, char[] resultArr, int resultPos) in handleTwoBytes() argument
119 resultArr[resultPos] = (char) (((byte1 & 0x1F) << 6) | trailingByteValue(byte2)); in handleTwoBytes()
123 byte byte1, byte byte2, byte byte3, char[] resultArr, int resultPos) in handleThreeBytes() argument
133 resultArr[resultPos] = (char) in handleThreeBytes()
138 byte byte1, byte byte2, byte byte3, byte byte4, char[] resultArr, int resultPos) in handleFourBytes() argument
157 resultArr[resultPos] = DecodeUtil.highSurrogate(codepoint); in handleFourBytes()
158 resultArr[resultPos + 1] = DecodeUtil.lowSurrogate(codepoint); in handleFourBytes()
DUtf8Safe.java138 char[] resultArr = new char[size]; in decodeUtf8Array() local
149 DecodeUtil.handleOneByte(b, resultArr, resultPos++); in decodeUtf8Array()
155 DecodeUtil.handleOneByte(byte1, resultArr, resultPos++); in decodeUtf8Array()
164 DecodeUtil.handleOneByte(b, resultArr, resultPos++); in decodeUtf8Array()
170 DecodeUtil.handleTwoBytes(byte1, /* byte2 */ bytes[offset++], resultArr, resultPos++); in decodeUtf8Array()
179 resultArr, in decodeUtf8Array()
190 resultArr, in decodeUtf8Array()
197 return new String(resultArr, 0, resultPos); in decodeUtf8Array()
213 char[] resultArr = new char[length]; in decodeUtf8Buffer() local
224 DecodeUtil.handleOneByte(b, resultArr, resultPos++); in decodeUtf8Buffer()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java656 char[] resultArr = new char[size]; in decodeUtf8Default() local
667 DecodeUtil.handleOneByte(b, resultArr, resultPos++); in decodeUtf8Default()
673 DecodeUtil.handleOneByte(byte1, resultArr, resultPos++); in decodeUtf8Default()
682 DecodeUtil.handleOneByte(b, resultArr, resultPos++); in decodeUtf8Default()
689 byte1, /* byte2 */ buffer.get(offset++), resultArr, resultPos++); in decodeUtf8Default()
698 resultArr, in decodeUtf8Default()
709 resultArr, in decodeUtf8Default()
716 return new String(resultArr, 0, resultPos); in decodeUtf8Default()
968 char[] resultArr = new char[size]; in decodeUtf8() local
979 DecodeUtil.handleOneByte(b, resultArr, resultPos++); in decodeUtf8()
[all …]