encode method

  1. @override
Uint8List encode()
override

Implementation

@override
Uint8List encode() {
  final buffer = ByteDataWriter(endian: Endian.little);
  buffer.write(data);
  buffer.writeUint8(0);
  return buffer.toBytes();
}