Hi Joakim,

> On 20 Oct 2015, at 13:50, Joakim Erdfelt <joakim.erdf...@gmail.com> wrote:
> 
> You know that CharBuffer doesn't actually do UTF8, right?
> It's just a ByteBuffer split into equal 2 byte segments.
> CharBuffer is a way to obtain char (the 2 byte number, not the character) 
> from the ByteBuffer or String you created it from.
> CharBuffer is functionally no different than ShortBuffer.

Yes, I'm fully aware of the difference between java.nio.ByteBuffer#asCharBuffer
and java.nio.charset.CharsetDecoder#decode(java.nio.ByteBuffer).

What's your point?

Reply via email to