Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp41 , bufferPos(0) in BufferState()
52 if ((len+bufferPos) > bufferSize) { in append()
53 size_t newSize = ((len+bufferPos)*3)/2; in append()
54 if (newSize < (len+bufferPos)) return NO_MEMORY; // overflow in append()
60 memcpy(buffer+bufferPos, txt, len); in append()
61 bufferPos += len; in append()
66 bufferPos = 0; in restart()
79 size_t bufferPos; member
217 vec.iov_len = b->bufferPos; in print()
255 if (b->bufferPos > 0 && b->atFront) { in popBundle()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBCodedInputStream.m67 size_t newSize = state->bufferPos + size;
73 state->bufferPos = state->currentLimit;
80 return ((int8_t *)state->bytes)[state->bufferPos++];
85 int32_t value = OSReadLittleInt32(state->bytes, state->bufferPos);
86 state->bufferPos += sizeof(int32_t);
92 int64_t value = OSReadLittleInt64(state->bytes, state->bufferPos);
93 state->bufferPos += sizeof(int64_t);
149 state->bufferPos += size;
249 result = [[NSString alloc] initWithBytes:&state->bytes[state->bufferPos]
252 state->bufferPos += size;
[all …]
DGPBCodedInputStream_PackagePrivate.h45 size_t bufferPos; member