writeBytes method
Write the given bytes. A Uint8List is the recommended subtype
of List<int>
.
Implementation
void writeBytes(List<int> bytes) {
if (bytes is Uint8List) {
_dest.add(bytes);
} else {
_dest.add(Uint8List.fromList(bytes)); // Make a more compact copy
}
}