ComPingPacket.js 289 B

123456789101112
  1. module.exports = ComPingPacket;
  2. function ComPingPacket() {
  3. this.command = 0x0e;
  4. }
  5. ComPingPacket.prototype.write = function(writer) {
  6. writer.writeUnsignedNumber(1, this.command);
  7. };
  8. ComPingPacket.prototype.parse = function(parser) {
  9. this.command = parser.parseUnsignedNumber(1);
  10. };