Home
last modified time | relevance | path

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

/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java403 private int currentLimit = Integer.MAX_VALUE; field in CodedInputByteBufferNano
481 final int oldLimit = currentLimit; in pushLimit()
485 currentLimit = byteLimit; in pushLimit()
495 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
497 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
510 currentLimit = oldLimit; in popLimit()
519 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
524 return currentLimit - currentAbsolutePosition; in getBytesUntilLimit()
598 if (bufferPos + size > currentLimit) { in readRawBytes()
600 skipRawBytes(currentLimit - bufferPos); in readRawBytes()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java450 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStreamMicro
538 final int oldLimit = currentLimit; in pushLimit()
542 currentLimit = byteLimit; in pushLimit()
552 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
554 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
567 currentLimit = oldLimit; in popLimit()
576 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
581 return currentLimit - currentAbsolutePosition; in getBytesUntilLimit()
606 if (totalBytesRetired + bufferSize == currentLimit) { in refillBuffer()
666 if (totalBytesRetired + bufferPos + size > currentLimit) { in readRawBytes()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/
DCodedInputStream.java496 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStream
594 final int oldLimit = currentLimit; in pushLimit()
598 currentLimit = byteLimit; in pushLimit()
608 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
610 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
623 currentLimit = oldLimit; in popLimit()
632 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
637 return currentLimit - currentAbsolutePosition; in getBytesUntilLimit()
670 if (totalBytesRetired + bufferSize == currentLimit) { in refillBuffer()
730 if (totalBytesRetired + bufferPos + size > currentLimit) { in readRawBytes()
[all …]
/external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/
DCodedInputStream.java551 private int currentLimit = Integer.MAX_VALUE; field in CodedInputStream
649 final int oldLimit = currentLimit; in pushLimit()
653 currentLimit = byteLimit; in pushLimit()
663 if (bufferEnd > currentLimit) { in recomputeBufferSizeAfterLimit()
665 bufferSizeAfterLimit = bufferEnd - currentLimit; in recomputeBufferSizeAfterLimit()
678 currentLimit = oldLimit; in popLimit()
687 if (currentLimit == Integer.MAX_VALUE) { in getBytesUntilLimit()
692 return currentLimit - currentAbsolutePosition; in getBytesUntilLimit()
725 if (totalBytesRetired + bufferSize == currentLimit) { in refillBuffer()
785 if (totalBytesRetired + bufferPos + size > currentLimit) { in readRawBytes()
[all …]