getBytesWithAmount method
Retrieves a Uint8List from the message.
amount : The amount of bytes to retrieve.
Returns the array that was retrieved.
Implementation
Uint8List getBytesWithAmount(int amount) {
Uint8List array = Uint8List(amount);
_readBytes(amount, array);
return array;
}