Searched refs:LiteralByteString (Results 1 – 13 of 13) sorted by relevance
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | RopeByteString.java | 212 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 …]
|
D | ByteString.java | 81 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()
|
D | LiteralByteString.java | 52 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()
|
D | Internal.java | 304 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()
|
D | BoundedByteString.java | 47 class BoundedByteString extends LiteralByteString {
|
D | CodedInputStream.java | 119 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/ |
D | BoundedByteStringTest.java | 59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); in testToString()
|
D | LiteralByteStringTest.java | 294 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()
|
D | ByteStringTest.java | 657 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/ |
D | build.gradle | 56 include 'com/google/protobuf/LiteralByteString.java'
|
D | Makefile.am | 93 java/src/main/java/com/google/protobuf/LiteralByteString.java \
|
D | Android.mk | 61 java/src/main/java/com/google/protobuf/LiteralByteString.java \
|
D | Makefile.in | 428 java/src/main/java/com/google/protobuf/LiteralByteString.java \
|