Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DUtf8.java1191 final long outLimit = outIx + length; in encodeUtf8() local
1212 if (c < 0x80 && outIx < outLimit) { in encodeUtf8()
1214 } else if (c < 0x800 && outIx <= outLimit - 2L) { // 11 bits, two UTF-8 bytes in encodeUtf8()
1217 } else if ((c < MIN_SURROGATE || MAX_SURROGATE < c) && outIx <= outLimit - 3L) { in encodeUtf8()
1222 } else if (outIx <= outLimit - 4L) { in encodeUtf8()
1253 final long outLimit = address + out.limit(); in encodeUtf8Direct() local
1255 if (inLimit > outLimit - outIx) { in encodeUtf8Direct()
1275 if (c < 0x80 && outIx < outLimit) { in encodeUtf8Direct()
1277 } else if (c < 0x800 && outIx <= outLimit - 2L) { // 11 bits, two UTF-8 bytes in encodeUtf8Direct()
1280 } else if ((c < MIN_SURROGATE || MAX_SURROGATE < c) && outIx <= outLimit - 3L) { in encodeUtf8Direct()
[all …]