Home
last modified time | relevance | path

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

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java405 private int currentLimit = Integer.MAX_VALUE; field in CodedInputByteBufferNano
483 final int oldLimit = currentLimit; in pushLimit()
487 currentLimit = byteLimit; in pushLimit()
497 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
499 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
512 currentLimit = oldLimit; in popLimit()
521 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
526 return currentLimit - currentAbsolutePosition; in getBytesUntilLimit()
600 if (bufferPos + size > currentLimit) { in readRawBytes()
602 skipRawBytes(currentLimit - bufferPos); in readRawBytes()
[all …]
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java452 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStreamMicro
540 final int oldLimit = currentLimit; in pushLimit()
544 currentLimit = byteLimit; in pushLimit()
554 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
556 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
569 currentLimit = oldLimit; in popLimit()
578 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
583 return currentLimit - currentAbsolutePosition; in getBytesUntilLimit()
608 if (totalBytesRetired + bufferSize == currentLimit) { in refillBuffer()
668 if (totalBytesRetired + bufferPos + size > currentLimit) { in readRawBytes()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs110 private int currentLimit = int.MaxValue; field in Google.Protobuf.CodedInputStream
967 int oldLimit = currentLimit; in PushLimit()
972 currentLimit = byteLimit; in PushLimit()
983 if (bufferEnd > currentLimit) in RecomputeBufferSizeAfterLimit()
986 bufferSizeAfterLimit = bufferEnd - currentLimit; in RecomputeBufferSizeAfterLimit()
1000 currentLimit = oldLimit; in PopLimit()
1012 if (currentLimit == int.MaxValue)
1017 return currentAbsolutePosition >= currentLimit;
1047 if (totalBytesRetired + bufferSize == currentLimit) in RefillBuffer()
1120 if (totalBytesRetired + bufferPos + size > currentLimit) in ReadRawBytes()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java604 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStream.ArrayDecoder
1185 final int oldLimit = currentLimit; in pushLimit()
1189 currentLimit = byteLimit; in pushLimit()
1199 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
1201 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
1210 currentLimit = oldLimit; in popLimit()
1216 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
1220 return currentLimit - getTotalBytesRead(); in getBytesUntilLimit()
1313 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStream.UnsafeDirectNioDecoder
1908 final int oldLimit = currentLimit; in pushLimit()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractor.java257 int currentLimit = buffer.limit(); in readFrames() local
259 if (currentLimit < BUFFER_LENGTH) { in readFrames()
262 buffer.data, /* offset= */ currentLimit, /* length= */ BUFFER_LENGTH - currentLimit); in readFrames()
265 buffer.setLimit(currentLimit + bytesRead); in readFrames()
/external/protobuf/objectivec/
DGPBCodedInputStream.m82 if (newSize > state->currentLimit) {
83 // Fast forward to end of currentLimit;
84 state->bufferPos = state->currentLimit;
272 size_t oldLimit = state->currentLimit;
276 state->currentLimit = byteLimit;
282 state->currentLimit = oldLimit;
286 return state->currentLimit - state->bufferPos;
291 (state->bufferPos == state->currentLimit);
316 state_.currentLimit = state_.bufferSize;
DGPBCodedInputStream_PackagePrivate.h49 size_t currentLimit; member