Home
last modified time | relevance | path

Searched refs:minLengthVarIntSize (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedOutputStream.java1411 final int minLengthVarIntSize = computeUInt32SizeNoTag(value.length()); in writeStringNoTag() local
1412 if (minLengthVarIntSize == maxLengthVarIntSize) { in writeStringNoTag()
1413 position = oldPosition + minLengthVarIntSize; in writeStringNoTag()
1418 int length = newPosition - oldPosition - minLengthVarIntSize; in writeStringNoTag()
1726 final int minLengthVarIntSize = computeUInt32SizeNoTag(value.length()); in writeStringNoTag() local
1727 if (minLengthVarIntSize == maxLengthVarIntSize) { in writeStringNoTag()
1730 final int startOfBytes = buffer.position() + minLengthVarIntSize; in writeStringNoTag()
2171 final int minLengthVarIntSize = computeUInt32SizeNoTag(value.length()); in writeStringNoTag() local
2173 if (minLengthVarIntSize == maxLengthVarIntSize) { in writeStringNoTag()
2174 position = oldPosition + minLengthVarIntSize; in writeStringNoTag()
[all …]
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java309 final int minLengthVarIntSize = computeRawVarint32Size(value.length()); in writeStringNoTag() local
311 if (minLengthVarIntSize == maxLengthVarIntSize) { in writeStringNoTag()
316 if (buffer.remaining() < minLengthVarIntSize) { in writeStringNoTag()
317 throw new OutOfSpaceException(oldPosition + minLengthVarIntSize, buffer.limit()); in writeStringNoTag()
319 buffer.position(oldPosition + minLengthVarIntSize); in writeStringNoTag()
323 writeRawVarint32(newPosition - oldPosition - minLengthVarIntSize); in writeStringNoTag()