xitdb
Version:
An immutable database
16 lines (15 loc) • 513 B
TypeScript
import { Tag } from './tag';
import type { WriteableData } from './writeable-data';
export declare class Slot implements WriteableData {
static readonly LENGTH = 9;
readonly value: bigint;
readonly tag: Tag;
readonly full: boolean;
constructor(value?: number | bigint, tag?: Tag, full?: boolean);
withTag(tag: Tag): Slot;
withFull(full: boolean): Slot;
empty(): boolean;
toBytes(): Uint8Array;
static fromBytes(bytes: Uint8Array): Slot;
equals(other: Slot): boolean;
}