(s, protocol, param1, param2)
| 233 | s.writable = s.write(packet); |
| 234 | } |
| 235 | doProtocol(s, protocol, param1, param2) { |
| 236 | this.startTrace("packetize"); |
| 237 | const packet = protocol.packetize(this, param1, param2); |
| 238 | if (!packet) return; |
| 239 | s.write(packet); |
| 240 | s.writable -= packet.byteLength; |
| 241 | } |
| 242 | readPacket(s) { |
| 243 | let packetBuffer = this.packetBuffer; |
| 244 | if (!packetBuffer || (packetBuffer.offset < 5)) { |
no test coverage detected