get method
Gets bytes from the buffer into the destination array
Implementation
ByteBuffer get(Uint8List dst) {
// Check if we have enough bytes
if (_pos + dst.length > _buf.length) {
throw RangeError('Buffer underflow');
}
// Copy bytes from current position to destination
for (int i = 0; i < dst.length; i++) {
dst[i] = _buf[_pos++];
}
return this;
}