File: index.d.ts

package info (click to toggle)
node-buffer-crc32 0.2.13%2B~0.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 116 kB
  • sloc: javascript: 194; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Type definitions for buffer-crc32 0.2
// Project: https://github.com/brianloveswords/buffer-crc32
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

export = crc32;

declare function crc32(input: string | Buffer, partialCrc?: Buffer): Buffer;

declare namespace crc32 {
    function signed(buffer: Buffer): number;
    function unsigned(buffer: Buffer): number;
}