encodePayloadAsBinary static method
Implementation
static encodePayloadAsBinary(List packets, Function(dynamic _) callback) {
if (packets.isEmpty) {
return callback(Uint8List(0));
}
map(packets, encodeOneBinaryPacket, (results) {
var list = [];
results.forEach((e) => list.addAll(e));
return callback(list);
});
}