handleBytes method
- Uint8List data
Feed whatever the transport read. Partial lines are held until the rest arrives.
Implementation
void handleBytes(Uint8List data) {
_alive();
if (data.isEmpty) {
return;
}
final buffer = calloc<Uint8>(data.length);
try {
buffer.asTypedList(data.length).setAll(0, data);
_bindings.handleBytes(_handle, buffer, data.length);
} finally {
calloc.free(buffer);
}
}