Backend/node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js

16 lines
319 B
JavaScript
Raw Normal View History

2021-12-31 09:33:23 +00:00
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);
};