Searched refs:MAX_VARINT_SIZE (Results 1 – 6 of 6) sorted by relevance
36 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 …]
39 import static com.google.protobuf.WireFormat.MAX_VARINT_SIZE;1022 if (limit - pos >= MAX_VARINT_SIZE) { in skipRawVarint()1030 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintFastPath()1039 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintSlowPath()1748 if (remaining() >= MAX_VARINT_SIZE) { in skipRawVarint()1756 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintFastPath()1765 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintSlowPath()2498 if (bufferSize - pos >= MAX_VARINT_SIZE) { in skipRawVarint()2506 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintFastPath()2515 for (int i = 0; i < MAX_VARINT_SIZE; i++) { in skipRawVarintSlowPath()[all …]
53 static final int MAX_VARINT_SIZE = 10; field in WireFormat
30 public static final int MAX_VARINT_SIZE = 5; field in VarInt
43 | MAX_VARINT_SIZE | Maximum submessage length |
104 …ializing uint32 varints, check that we have MAX_VARINT32_SIZE bytes left, not just MAX_VARINT_SIZE.