Searched refs:RopeByteString (Results 1 – 11 of 11) sorted by relevance
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | RopeByteString.java | 68 final class RopeByteString extends ByteString { class 146 private RopeByteString(ByteString left, ByteString right) { in RopeByteString() method in RopeByteString 183 if (left instanceof RopeByteString) { in concatenate() 184 final RopeByteString leftRope = (RopeByteString) left; in concatenate() 197 return new RopeByteString(leftRope.left, newRight); in concatenate() 207 ByteString newRight = new RopeByteString(leftRope.right, right); in concatenate() 208 return new RopeByteString(leftRope.left, newRight); in concatenate() 216 return new RopeByteString(left, right); in concatenate() 249 static RopeByteString newInstanceForTest(ByteString left, ByteString right) { in newInstanceForTest() 250 return new RopeByteString(left, right); in newInstanceForTest() [all …]
|
D | NioByteString.java | 205 if (other instanceof RopeByteString) { in equals()
|
D | ByteString.java | 574 return RopeByteString.concatenate(this, other); in concat()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | RopeByteStringTest.java | 71 assertEquals(a, RopeByteString.minLength(i)); in testMinLength() 76 assertEquals(Integer.MAX_VALUE, RopeByteString.minLength(i)); in testMinLength() 77 assertEquals(Integer.MAX_VALUE, RopeByteString.minLength(i + 1)); in testMinLength() 78 assertEquals(i + 1, RopeByteString.minLengthByDepth.length); in testMinLength() 127 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString() 156 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString() 176 RopeByteString ropeByteString = in testToString_returnsCanonicalEmptyString() 177 RopeByteString.newInstanceForTest(ByteString.EMPTY, ByteString.EMPTY); in testToString_returnsCanonicalEmptyString() 187 ByteString byteString = RopeByteString.newInstanceForTest(ByteString.EMPTY, ByteString.EMPTY); in testToString_raisesException() 196 RopeByteString.concatenate( in testToString_raisesException()
|
D | IsValidUtf8Test.java | 140 RopeByteString.newInstanceForTest(ByteString.EMPTY, leaf), in assertValidUtf8() 141 RopeByteString.newInstanceForTest(ByteString.EMPTY, sub), in assertValidUtf8() 142 RopeByteString.newInstanceForTest(leaf, ByteString.EMPTY), in assertValidUtf8() 143 RopeByteString.newInstanceForTest(sub, ByteString.EMPTY), in assertValidUtf8() 144 RopeByteString.newInstanceForTest(sub, leaf) in assertValidUtf8()
|
D | RopeByteStringSubstringTest.java | 79 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString() 112 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString()
|
D | IsValidUtf8TestUtil.java | 311 RopeByteString.newInstanceForTest( 313 RopeByteString.newInstanceForTest(bs.substring(i, j), bs.substring(j, numBytes))); 314 assertSame(RopeByteString.class, rope.getClass()); 330 ByteString ropeADope = RopeByteString.newInstanceForTest(bs, bs.substring(0, numBytes));
|
D | ByteStringTest.java | 733 ByteString duo = RopeByteString.newInstanceForTest(literalString, literalString); in testConcat_empty() 735 RopeByteString.newInstanceForTest( in testConcat_empty() 736 RopeByteString.newInstanceForTest(literalString, ByteString.EMPTY), in testConcat_empty() 737 RopeByteString.newInstanceForTest(ByteString.EMPTY, literalString)); in testConcat_empty() 738 ByteString quintet = RopeByteString.newInstanceForTest(temp, ByteString.EMPTY); in testConcat_empty()
|
/third_party/protobuf/java/core/ |
D | BUILD | 76 "src/main/java/com/google/protobuf/RopeByteString.java",
|
/third_party/protobuf/ |
D | Makefile.am | 372 java/core/src/main/java/com/google/protobuf/RopeByteString.java \
|
D | CHANGES.txt | 447 * Minor optimization to RopeByteString.PieceIterator
|