The length of bytes to output.
int get length => _data.map((e) { if (e is Uint8List) { return e.length; } else if (e is BytesEmitter) { return e.length; } else if (e is int) { return 1; } else { throw StateError("Can't handle type: $e"); } }).sum;