예제 #1
0
 @Override
 public VanillaBytes<Underlying> appendUtf8(char[] chars, int offset, int length)
     throws BufferOverflowException, IllegalArgumentException, IORuntimeException {
   ensureCapacity(writePosition() + length);
   if (bytesStore instanceof NativeBytesStore) {
     writePosition(
         ((NativeBytesStore) bytesStore).appendUTF(writePosition(), chars, offset, length));
   } else {
     super.appendUtf8(chars, offset, length);
   }
   return this;
 }