Searched refs:currentLimit (Results 1 – 7 of 7) sorted by relevance
405 private int currentLimit = Integer.MAX_VALUE; field in CodedInputByteBufferNano483 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 …]
452 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStreamMicro540 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 …]
110 private int currentLimit = int.MaxValue; field in Google.Protobuf.CodedInputStream967 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 …]
604 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStream.ArrayDecoder1185 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.UnsafeDirectNioDecoder1908 final int oldLimit = currentLimit; in pushLimit()[all …]
257 int currentLimit = buffer.limit(); in readFrames() local259 if (currentLimit < BUFFER_LENGTH) { in readFrames()262 buffer.data, /* offset= */ currentLimit, /* length= */ BUFFER_LENGTH - currentLimit); in readFrames()265 buffer.setLimit(currentLimit + bytesRead); in readFrames()
82 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;
49 size_t currentLimit; member