UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

16 lines 698 B
/** * 32-bit Cyclic Redundancy Checksum. * @see https://en.wikipedia.org/wiki/Cyclic_redundancy_check * @param {Uint8Array} buffer byte buffer * @param {number} [offset=0] where to start in the input buffer * @param {number} [length=buffer.length] how many bytes to include in checksum calculation * @return {number} Unsigned 32-bit integer value * @copyright Company Named Limited (c) 2025 * * @example * const buffer = new BinaryBuffer(); * buffer.writeASCIIString("Hello World"); * const checksum = crc32(buffer.raw_bytes, 0, buffer.position); */ export function crc32(buffer: Uint8Array, offset?: number, length?: number): number; //# sourceMappingURL=crc32.d.ts.map