内容纲要
var length = Buffer.byteLength(data);
sendBuf = new Buffer(length + 14);
sendBuf.writeInt32LE(length + 10, 0);
sendBuf.writeInt32LE(id, 4);
sendBuf.writeInt32LE(cmd, 8);
sendBuf.write(data, 12);
sendBuf.writeInt16LE(0, length + 12);

发表评论

电子邮件地址不会被公开。 必填项已用*标注