public override CharBuffer Slice() { byteBuffer.Limit = limit << 1; byteBuffer.Position = position << 1; CharBuffer result = new CharToByteBufferAdapter(byteBuffer.Slice()); byteBuffer.Clear(); return(result); }
public override sealed CharBuffer AsCharBuffer() { return(CharToByteBufferAdapter.Wrap(this)); }