public override CharBuffer Slice()
        {
            byteBuffer.Limit    = limit << 1;
            byteBuffer.Position = position << 1;
            CharBuffer result = new CharToByteBufferAdapter(byteBuffer.Slice());

            byteBuffer.Clear();
            return(result);
        }
예제 #2
0
 public override sealed CharBuffer AsCharBuffer()
 {
     return(CharToByteBufferAdapter.Wrap(this));
 }