LocalDataFilePacket.js 319 B

12345678910111213141516
  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. };