65fe13478b
16 lines
319 B
JavaScript
16 lines
319 B
JavaScript
module.exports = LocalDataFilePacket;
|
|||
|
|||
/**
|
|||
* Create a new LocalDataFilePacket
|
|||
* @constructor
|
|||
* @param {Buffer} data The data contents of the packet
|
|||
* @public
|
|||
*/
|
|||
function LocalDataFilePacket(data) {
|
|||
this.data = data;
|
|||
}
|
|||
|
|||
LocalDataFilePacket.prototype.write = function(writer) {
|
|||
writer.writeBuffer(this.data);
|
|||
};
|