Home
last modified time | relevance | path

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

/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedOutputStream.java36 import static com.google.protobuf.WireFormat.MAX_VARINT_SIZE;
722 return MAX_VARINT_SIZE; in computeInt32SizeNoTag()
1398 if (HAS_UNSAFE_ARRAY_OPERATIONS && spaceLeft() >= MAX_VARINT_SIZE) { in writeUInt64NoTag()
1891 oneVarintLimit = limit - MAX_VARINT_SIZE; in UnsafeDirectNioEncoder()
2248 this.buffer = new byte[max(bufferSize, MAX_VARINT_SIZE * 2)]; in AbstractBufferedEncoder()
2412 flushIfNotAvailable(MAX_VARINT_SIZE * 2); in writeInt32()
2419 flushIfNotAvailable(MAX_VARINT_SIZE * 2); in writeUInt32()
2426 flushIfNotAvailable(MAX_VARINT_SIZE + FIXED32_SIZE); in writeFixed32()
2433 flushIfNotAvailable(MAX_VARINT_SIZE * 2); in writeUInt64()
2440 flushIfNotAvailable(MAX_VARINT_SIZE + FIXED64_SIZE); in writeFixed64()
[all …]
DCodedInputStream.java39 import static com.google.protobuf.WireFormat.MAX_VARINT_SIZE;
1024 if (limit - pos >= MAX_VARINT_SIZE) { in skipRawVarint()
1032 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintFastPath()
1041 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintSlowPath()
1750 if (remaining() >= MAX_VARINT_SIZE) { in skipRawVarint()
1758 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintFastPath()
1767 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintSlowPath()
2500 if (bufferSize - pos >= MAX_VARINT_SIZE) { in skipRawVarint()
2508 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintFastPath()
2517 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintSlowPath()
[all …]
DWireFormat.java53 static final int MAX_VARINT_SIZE = 10; field in WireFormat
/third_party/protobuf/
DCHANGES.txt446 …ializing uint32 varints, check that we have MAX_VARINT32_SIZE bytes left, not just MAX_VARINT_SIZE.