LocalDataFilePacket.js 319 B

123456789101112131415
  1. module.exports = LocalDataFilePacket;
  2. /**
  3. * Create a new LocalDataFilePacket
  4. * @constructor
  5. * @param {Buffer} data The data contents of the packet
  6. * @public
  7. */
  8. function LocalDataFilePacket(data) {
  9. this.data = data;
  10. }
  11. LocalDataFilePacket.prototype.write = function(writer) {
  12. writer.writeBuffer(this.data);
  13. };