Returns the text of the given range in the unit.
String getText(int offset, int length) => _buffer.substring(offset, offset + length);