Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private static parseQWordAttr(buf: Buffer, offset: number = 0): number {
return Token.UINT64_LE.get(buf, offset);
}
get: (buf: Buffer, off: number): IChunkHeader => {
return {id: FourCcToken.get(buf, off), size: Token.UINT64_LE.get(buf, off + 4)};
}
};
async function readHeader() {
const guid = Buffer.alloc(16);
await tokenizer.readBuffer(guid);
return {
id: guid,
size: await tokenizer.readToken(Token.UINT64_LE)
};
}