Home
last modified time | relevance | path

Searched refs:LiteralByteString (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/java/src/main/java/com/google/protobuf/
DRopeByteString.java212 private static LiteralByteString concatenateBytes(ByteString left, in concatenateBytes()
219 return new LiteralByteString(bytes); // Constructor wraps bytes in concatenateBytes()
392 LiteralByteString byteString = pieces.next(); in asReadOnlyByteBufferList()
494 Iterator<LiteralByteString> thisIter = new PieceIterator(this); in equalsFragments()
495 LiteralByteString thisString = thisIter.next(); in equalsFragments()
498 Iterator<LiteralByteString> thatIter = new PieceIterator(other); in equalsFragments()
499 LiteralByteString thatString = thatIter.next(); in equalsFragments()
716 private static class PieceIterator implements Iterator<LiteralByteString> {
720 private LiteralByteString next;
726 private LiteralByteString getLeafByLeft(ByteString root) { in getLeafByLeft()
[all …]
DByteString.java81 public static final ByteString EMPTY = new LiteralByteString(new byte[0]);
208 return new LiteralByteString(copy); in copyFrom()
232 return new LiteralByteString(copy); in copyFrom()
257 return new LiteralByteString(text.getBytes(charsetName)); in copyFrom()
269 return new LiteralByteString(text.getBytes("UTF-8")); in copyFromUtf8()
898 flushedBuffers.add(new LiteralByteString(buffer)); in flushFullBuffer()
917 flushedBuffers.add(new LiteralByteString(bufferCopy)); in flushLastBuffer()
922 flushedBuffers.add(new LiteralByteString(buffer)); in flushLastBuffer()
969 return new LiteralByteString(buffer); in build()
DLiteralByteString.java52 class LiteralByteString extends ByteString { class
62 LiteralByteString(byte[] bytes) { in LiteralByteString() method in LiteralByteString
192 if (other instanceof LiteralByteString) { in equals()
193 return equalsRange((LiteralByteString) other, 0, size()); in equals()
212 boolean equalsRange(LiteralByteString other, int offset, int length) { in equalsRange()
DInternal.java304 return LiteralByteString.hashCode(bytes); in hashCode()
358 int h = LiteralByteString.hashCode(bytes.capacity(), bytes.array(), in hashCodeByteBuffer()
374 h = LiteralByteString.hashCode(h, buffer, 0, length); in hashCodeByteBuffer()
DBoundedByteString.java47 class BoundedByteString extends LiteralByteString {
DCodedInputStream.java119 static CodedInputStream newInstance(LiteralByteString byteString) { in newInstance()
517 return new LiteralByteString(readRawBytesSlowPath(size)); in readBytes()
907 private CodedInputStream(final LiteralByteString byteString) { in CodedInputStream()
/external/protobuf/java/src/test/java/com/google/protobuf/
DBoundedByteStringTest.java59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); in testToString()
DLiteralByteStringTest.java294 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); in testToString()
305 new LiteralByteString(new byte[]{}), stringUnderTest.substring(55, 55)); in testEquals()
307 stringUnderTest, new LiteralByteString(referenceBytes)); in testEquals()
313 stringUnderTest.equals(new LiteralByteString(mungedBytes))); in testEquals()
DByteStringTest.java657 duo.substring(i - 1, i) instanceof LiteralByteString); in testConcat_empty()
661 quintet.substring(i - 1, i) instanceof LiteralByteString); in testConcat_empty()
726 LiteralByteString left = new LiteralByteString(data1); in testWriteToOutputStream()
735 LiteralByteString right = new LiteralByteString(data2); in testWriteToOutputStream()
/external/protobuf/
Dbuild.gradle56 include 'com/google/protobuf/LiteralByteString.java'
DMakefile.am93 java/src/main/java/com/google/protobuf/LiteralByteString.java \
DAndroid.mk61 java/src/main/java/com/google/protobuf/LiteralByteString.java \
DMakefile.in428 java/src/main/java/com/google/protobuf/LiteralByteString.java \