encode method
Encodes the channel description to a Uint8List.
Implementation
Uint8List encode() {
final ByteData data = ByteData(20);
data.setInt32(0, channelLabel);
data.setInt32(4, channelFlags);
data.setFloat32(8, coordinates[0]);
data.setFloat32(12, coordinates[1]);
data.setFloat32(16, coordinates[2]);
return data.buffer.asUint8List();
}