Searched refs:encodedLength (Results 1 – 5 of 5) sorted by relevance
71 int encodedLength = mEncoder.getEncodedLengthOfChunk(mTestChunk); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths() local73 assertThat(encodedLength).isEqualTo(TEST_NONCE.length + TEST_DATA.length); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths()
76 int encodedLength = mEncoder.getEncodedLengthOfChunk(mTestChunk); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths() local78 assertThat(encodedLength).isEqualTo(Integer.BYTES + TEST_NONCE.length + TEST_DATA.length); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths()
318 writeRawVarint32(encodedLength(value)); in writeStringNoTag()338 private static int encodedLength(CharSequence sequence) { in encodedLength() method in CodedOutputByteBufferNano811 final int length = encodedLength(value); in computeStringSizeNoTag()
856 length = Utf8.encodedLength(value); in computeStringSizeNoTag()1454 int length = Utf8.encodedLength(value); in writeStringNoTag()1776 final int length = Utf8.encodedLength(value); in writeStringNoTag()2216 int length = Utf8.encodedLength(value); in writeStringNoTag()2519 length = Utf8.encodedLength(value); in writeStringNoTag()
250 static int encodedLength(CharSequence sequence) { in encodedLength() method in Utf8