How to use the token-types.UINT64_LE function in token-types

To help you get started, we’ve selected a few token-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Borewit / music-metadata / lib / asf / AsfUtil.ts View on Github external
private static parseQWordAttr(buf: Buffer, offset: number = 0): number {
    return Token.UINT64_LE.get(buf, offset);
  }
github Borewit / music-metadata / lib / dsf / DsfChunk.ts View on Github external
get: (buf: Buffer, off: number): IChunkHeader => {
    return {id: FourCcToken.get(buf, off), size: Token.UINT64_LE.get(buf, off + 4)};
  }
};
github sindresorhus / file-type / core.js View on Github external
async function readHeader() {
			const guid = Buffer.alloc(16);
			await tokenizer.readBuffer(guid);
			return {
				id: guid,
				size: await tokenizer.readToken(Token.UINT64_LE)
			};
		}