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