* Encode packet as 'buffer sequence' by removing blobs, and * deconstructing packet into object with placeholders and * a list of buffers.
(obj: Packet)
| 122 | */ |
| 123 | |
| 124 | private encodeAsBinary(obj: Packet) { |
| 125 | const deconstruction = deconstructPacket(obj); |
| 126 | const pack = this.encodeAsString(deconstruction.packet); |
| 127 | const buffers = deconstruction.buffers; |
| 128 | |
| 129 | buffers.unshift(pack); // add packet info to beginning of data list |
| 130 | return buffers; // write all the buffers |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | interface DecoderReservedEvents { |
no test coverage detected