Use native BigInt

# Conflicts:
#	helpers/scanner/parsers/plist.js
This commit is contained in:
Sam Carlton 2022-07-26 21:17:53 -05:00
parent 1330a1d6ae
commit df266d7760

View file

@ -5,7 +5,6 @@ import { Buffer } from 'buffer/'
// const fs = require('fs');
// const bigInt = require('big-integer')
// const bufferApi = require('buffer')
const debug = false
@ -188,7 +187,7 @@ function parseBuffer ( buffer ) {
const data = buffer.slice(offset + 1, offset + 1 + length);
if (length === 16) {
const str = bufferToHexString(data);
return bigInt(str, 16);
return BigInt(str, 16);
}
return data.reduce((acc, curr) => {
acc <<= 8;