Installation
npm install --save @types/ronomon__hash-table
Summary
This package contains type definitions for @ronomon/hash-table (https://github.com/ronomon/hash-table#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ronomon__hash-table.
declare module "@ronomon/hash-table" {
class HashTable {
constructor(
keySize: number,
valueSize: number,
elementsMin: number,
elementsMax: number,
);
cache(
key: Buffer,
keyOffset: number,
value: Buffer,
valueOffset: number,
): number;
exist(key: Buffer, keyOffset: number): number;
get(
key: Buffer,
keyOffset: number,
value: Buffer,
valueOffset: number,
): number;
set(
key: Buffer,
keyOffset: number,
value: Buffer,
valueOffset: number,
): number;
unset(key: Buffer, keyOffset: number): number;
static BUCKETS_MAX: number;
static BUCKETS_MIN: number;
static BUFFERS_MAX: number;
static BUFFERS_MIN: number;
static BUFFER_MAX: number;
static ELEMENTS_MAX: number;
static ELEMENTS_MIN: number;
static ERROR_MAXIMUM_CAPACITY_EXCEEDED: string;
static ERROR_MODE: string;
static ERROR_SET: string;
static KEY_MAX: number;
static KEY_MIN: number;
static VALUE_MAX: number;
static VALUE_MIN: number;
capacity: number;
length: number;
load: number;
size: number;
}
export = HashTable;
}
Additional Details
- Last updated: Wed, 18 Oct 2023 11:45:06 GMT
- Dependencies: @types/node
Credits
These definitions were written by airglow923.