encodeChannel method

  1. @override
(Uint8List, Channel) encodeChannel(
  1. Uint8List data,
  2. Channel channel
)
override

Implementation

@override
(Uint8List, Channel) encodeChannel(Uint8List data, Channel channel) {
  final builder = BytesBuilder();
  builder.addByte(channel);
  builder.add(data);
  return (builder.toBytes(), channel);
}