UNPKG

@gmod/cram

Version:

read CRAM files with pure Javascript

27 lines (26 loc) 618 B
export default class CRC32 { /** * The current CRC * @private */ private crc; /** * Constructor initializes the CRC value */ constructor(); /** * @return The current CRC */ getCRC(): number; /** * Update the CRC with a single byte * @param value The value to update the CRC with */ updateCRC(value: number): void; /** * Update the CRC with a sequence of identical bytes * @param value The value to update the CRC with * @param count The number of bytes */ updateCRCRun(value: number, count: number): void; }