Home
last modified time | relevance | path

Searched refs:RopeByteString (Results 1 – 11 of 11) sorted by relevance

/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DRopeByteString.java68 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 …]
DNioByteString.java205 if (other instanceof RopeByteString) { in equals()
DByteString.java574 return RopeByteString.concatenate(this, other); in concat()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DRopeByteStringTest.java71 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()
DIsValidUtf8Test.java140 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()
DRopeByteStringSubstringTest.java79 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString()
112 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString()
DIsValidUtf8TestUtil.java311 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));
DByteStringTest.java733 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/
DBUILD76 "src/main/java/com/google/protobuf/RopeByteString.java",
/third_party/protobuf/
DMakefile.am372 java/core/src/main/java/com/google/protobuf/RopeByteString.java \
DCHANGES.txt447 * Minor optimization to RopeByteString.PieceIterator