Home
last modified time | relevance | path

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

/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs76 private int bufferPos = 0; field in Google.Protobuf.CodedInputStream
170 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize) in CodedInputStream() argument
174 this.bufferPos = bufferPos; in CodedInputStream()
188 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimi… in CodedInputStream() argument
189 : this(input, buffer, bufferPos, bufferSize) in CodedInputStream()
232 return input.Position - ((bufferSize + bufferSizeAfterLimit) - bufferPos);
234 return bufferPos;
342 if (bufferPos + 2 <= bufferSize) in ReadTag()
344 int tmp = buffer[bufferPos++]; in ReadTag()
352 if ((tmp = buffer[bufferPos++]) < 128) in ReadTag()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java287 private int lastPos = bufferPos;
295 byteArrayStream.write(buffer, lastPos, bufferPos - lastPos); in onRefill()
305 return ByteBuffer.wrap(buffer, lastPos, bufferPos - lastPos); in getSkippedData()
307 byteArrayStream.write(buffer, lastPos, bufferPos); in getSkippedData()
363 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
366 final String result = new String(buffer, bufferPos, size, Internal.UTF_8); in readString()
367 bufferPos += size; in readString()
373 String result = new String(buffer, bufferPos, size, Internal.UTF_8); in readString()
374 bufferPos += size; in readString()
390 final int oldPos = bufferPos; in readStringRequireUtf8()
[all …]
DByteString.java939 private int bufferPos; field in Output
958 if (bufferPos == buffer.length) { in write()
961 buffer[bufferPos++] = (byte)b; in write()
966 if (length <= buffer.length - bufferPos) { in write()
968 System.arraycopy(b, offset, buffer, bufferPos, length); in write()
969 bufferPos += length; in write()
972 int copySize = buffer.length - bufferPos; in write()
973 System.arraycopy(b, offset, buffer, bufferPos, copySize); in write()
980 bufferPos = length; in write()
1021 cachedBufferPos = bufferPos; in writeTo()
[all …]
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java198 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
201 final String result = new String(buffer, bufferPos, size, "UTF-8"); in readString()
202 bufferPos += size; in readString()
240 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
243 final ByteStringMicro result = ByteStringMicro.copyFrom(buffer, bufferPos, size); in readBytes()
244 bufferPos += size; in readBytes()
440 private int bufferPos; field in CodedInputStreamMicro
468 bufferPos = off; in CodedInputStreamMicro()
475 bufferPos = 0; in CodedInputStreamMicro()
539 byteLimit += totalBytesRetired + bufferPos; in pushLimit()
[all …]
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java190 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
193 final String result = new String(buffer, bufferPos, size, InternalNano.UTF_8); in readString()
194 bufferPos += size; in readString()
232 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
236 System.arraycopy(buffer, bufferPos, result, 0, size); in readBytes()
237 bufferPos += size; in readBytes()
401 private int bufferPos; field in CodedInputByteBufferNano
421 bufferPos = off; in CodedInputByteBufferNano()
482 byteLimit += bufferPos; in pushLimit()
525 final int currentAbsolutePosition = bufferPos; in getBytesUntilLimit()
[all …]
/external/icu/icu4c/source/common/
Dnormlzr.cpp38 buffer(), bufferPos(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
47 buffer(), bufferPos(0) in Normalizer()
56 buffer(), bufferPos(0) in Normalizer()
65 buffer(copy.buffer), bufferPos(copy.bufferPos) in Normalizer()
102 …return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextI… in hashCode()
113 bufferPos==that.bufferPos && in operator ==()
251 if(bufferPos<buffer.length() || nextNormalize()) { in current()
252 return buffer.char32At(bufferPos); in current()
264 if(bufferPos<buffer.length() || nextNormalize()) { in next()
265 UChar32 c=buffer.char32At(bufferPos); in next()
[all …]
Dunames.cpp215 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \ argument
220 ++(bufferPos); \
242 uint16_t token, tokenCount=*tokens++, bufferPos=0; in expandName() local
279 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
294 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
299 if(!bufferPos && nameChoice == U_EXTENDED_CHAR_NAME) { in expandName()
311 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
322 return bufferPos; in expandName()
779 uint16_t i, factor, bufferPos=0; in writeFactorSuffix() local
820 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in writeFactorSuffix()
[all …]
/external/protobuf/objectivec/
DGPBCodedInputStream.m42 size_t newSize = state->bufferPos + size;
48 state->bufferPos = state->currentLimit;
55 return ((int8_t *)state->bytes)[state->bufferPos++];
60 int32_t value = OSReadLittleInt32(state->bytes, state->bufferPos);
61 state->bufferPos += sizeof(int32_t);
67 int64_t value = OSReadLittleInt64(state->bytes, state->bufferPos);
68 state->bufferPos += sizeof(int64_t);
124 state->bufferPos += size;
219 result = [[NSString alloc] initWithBytes:&state->bytes[state->bufferPos]
222 state->bufferPos += size;
[all …]
DGPBCodedInputStream_PackagePrivate.h45 size_t bufferPos; member
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizer.java146 private int bufferPos; field in Normalizer
656 copy.bufferPos = bufferPos; in clone()
1513 if(bufferPos<buffer.length() || nextNormalize()) { in current()
1514 return buffer.codePointAt(bufferPos); in current()
1530 if(bufferPos<buffer.length() || nextNormalize()) { in next()
1531 int c=buffer.codePointAt(bufferPos); in next()
1532 bufferPos+=Character.charCount(c); in next()
1550 if(bufferPos>0 || previousNormalize()) { in previous()
1551 int c=buffer.codePointBefore(bufferPos); in previous()
1552 bufferPos-=Character.charCount(c); in previous()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNormalizer.java147 private int bufferPos; field in Normalizer
643 copy.bufferPos = bufferPos; in clone()
1487 if(bufferPos<buffer.length() || nextNormalize()) { in current()
1488 return buffer.codePointAt(bufferPos); in current()
1503 if(bufferPos<buffer.length() || nextNormalize()) { in next()
1504 int c=buffer.codePointAt(bufferPos); in next()
1505 bufferPos+=Character.charCount(c); in next()
1522 if(bufferPos>0 || previousNormalize()) { in previous()
1523 int c=buffer.codePointBefore(bufferPos); in previous()
1524 bufferPos-=Character.charCount(c); in previous()
[all …]
/external/icu/icu4c/source/common/unicode/
Dnormlzr.h767 int32_t bufferPos; variable