toByteArray method
Returns a copy of the current contents as a byte array.
Returns a new Uint8List containing the written data.
Implementation
Uint8List toByteArray() {
return Uint8List.fromList(_buffer.take(_count).toList());
}
Returns a copy of the current contents as a byte array.
Returns a new Uint8List containing the written data.
Uint8List toByteArray() {
return Uint8List.fromList(_buffer.take(_count).toList());
}