mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Use win1252 character encoding for samp (1.0.48) Fixes #99
This commit is contained in:
parent
0487c7c20d
commit
8b3126e430
4 changed files with 18 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
const Iconv = require('iconv-lite'),
|
||||
Long = require('long');
|
||||
Long = require('long'),
|
||||
Core = require('../protocols/core'),
|
||||
Buffer = require('buffer');
|
||||
|
||||
function readUInt64BE(buffer,offset) {
|
||||
const high = buffer.readUInt32BE(offset);
|
||||
|
|
@ -13,6 +15,10 @@ function readUInt64LE(buffer,offset) {
|
|||
}
|
||||
|
||||
class Reader {
|
||||
/**
|
||||
* @param {Core} query
|
||||
* @param {Buffer} buffer
|
||||
**/
|
||||
constructor(query,buffer) {
|
||||
this.query = query;
|
||||
this.buffer = buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue