Searched refs:NioByteString (Results 1 – 5 of 5) sorted by relevance
48 final class NioByteString extends ByteString.LeafByteString { class51 NioByteString(ByteBuffer buffer) { in NioByteString() method in NioByteString98 return new NioByteString(slice); in substring()200 if (other instanceof NioByteString) { in equals()201 return buffer.equals(((NioByteString) other).buffer); in equals()
61 return new NioByteString(buffer); in unsafeWrap()
56 private static final ByteString EMPTY = new NioByteString(ByteBuffer.wrap(new byte[0]));57 private static final String CLASSNAME = NioByteString.class.getSimpleName();62 private final ByteString testString = new NioByteString(backingBuffer);439 new NioByteString(ByteBuffer.wrap(new byte[0])).toString(UTF_8)); in testToString_returnsCanonicalEmptyString()466 testString, new NioByteString(backingBuffer)); in testEquals()470 testString.equals(new NioByteString(ByteBuffer.wrap(mungedBytes)))); in testEquals()528 ByteString newString = new NioByteString(backingBuffer); in testPeekCachedHashCode()618 return new NioByteString(ByteBuffer.wrap(str.getBytes(UTF_8))); in forString()
78 return new NioByteString(ByteBuffer.wrap(bytes));103 return new NioByteString(buffer);
236 java/core/src/main/java/com/google/protobuf/NioByteString.java \