if (bytes == null) {
return;
}
// expand buffer as necessary to support all possible UTF-8 bytes
buffer.ensureCapacity(buffer.length()+bytes.length);
CharArrayWrapper wrapper = CharSequenceAccessor.access(buffer);
// since we want to mimic an "append", the "length" of the existing char
// array represents how much data is currently contained inside it
// we'll start our "append" at that offset
int charLength = decodeToCharArray(bytes, 0, bytes.length, wrapper.value, wrapper.length);
// the "wrapper" is merely prepped for reading