abstract static class ByteString.LeafByteString extends ByteString
ByteStrings (i.e. non-ropes).ByteString.ByteIterator, ByteString.CodedBuilder, ByteString.LeafByteString, ByteString.OutputCONCATENATE_BY_COPY_SIZE, EMPTY, MAX_READ_FROM_CHUNK_SIZE, MIN_READ_FROM_CHUNK_SIZE| Constructor and Description |
|---|
LeafByteString() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract boolean |
equalsRange(ByteString other,
int offset,
int length)
Check equality of the substring of given length of this object starting at
zero with another
ByteString substring starting at offset. |
protected int |
getTreeDepth()
Return the depth of the tree representing this
ByteString, if any,
whose root is this node. |
protected boolean |
isBalanced()
Return
true if this ByteString is literal (a leaf node) or a
flat-enough tree in the sense of RopeByteString. |
asReadOnlyByteBuffer, asReadOnlyByteBufferList, byteAt, checkIndex, checkRange, concat, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFromUtf8, copyTo, copyTo, copyTo, copyToInternal, endsWith, equals, hashCode, isEmpty, isValidUtf8, iterator, newCodedBuilder, newCodedInput, newInput, newOutput, newOutput, partialHash, partialIsValidUtf8, peekCachedHashCode, readFrom, readFrom, readFrom, size, startsWith, substring, substring, toByteArray, toString, toString, toString, toStringInternal, toStringUtf8, wrap, wrap, wrap, writeTo, writeTo, writeTo, writeToInternalprotected final int getTreeDepth()
ByteStringByteString, if any,
whose root is this node. If this is a leaf node, return 0.getTreeDepth in class ByteStringprotected final boolean isBalanced()
ByteStringtrue if this ByteString is literal (a leaf node) or a
flat-enough tree in the sense of RopeByteString.isBalanced in class ByteStringabstract boolean equalsRange(ByteString other, int offset, int length)
ByteString substring starting at offset.other - what to compare a substring inoffset - offset into otherlength - number of bytes to compare