Algorithm parameters.

interface Parameters {
    contentCompression: Compression;
    decodeBloom: (
        Bloom: typeof BloomFilter,
        comps: readonly Component[],
    ) => Promise<BloomFilter>;
    decodeState: (payload: Uint8Array<ArrayBufferLike>) => State;
    encodeBloom: (bf: BloomFilter) => Component[];
    encodeBloomLength: number;
    encodeState: (state: State) => Uint8Array<ArrayBufferLike>;
    iblt: IBLT.Parameters;
    ibltCompression: Compression;
    joinPrefixSeqNum: (ps: PrefixSeqNum) => PrefixSeqNumEncoded;
    threshold: number;
    toBloomKey: (prefix: Name) => string | Uint8Array<ArrayBufferLike>;
}

Hierarchy

  • Parameters
  • Parameters
    • Parameters

Properties

contentCompression: Compression

Compression method for State in segmented object.

decodeBloom: (
    Bloom: typeof BloomFilter,
    comps: readonly Component[],
) => Promise<BloomFilter>

Decode a Bloom filter.

decodeState: (payload: Uint8Array<ArrayBufferLike>) => State

Decode State from buffer (without decompression).

encodeBloom: (bf: BloomFilter) => Component[]

Encode a Bloom filter.

encodeBloomLength: number

Number of name components in an encoded Bloom filter.

encodeState: (state: State) => Uint8Array<ArrayBufferLike>

Encode State to buffer (without compression).

ibltCompression: Compression

Compression method for IBLT in name component.

joinPrefixSeqNum: (ps: PrefixSeqNum) => PrefixSeqNumEncoded

Encode prefix and sequence number to byte array.

threshold: number

If IBLT diff has at least this number of entries, respond with SyncData right away.

toBloomKey: (prefix: Name) => string | Uint8Array<ArrayBufferLike>

Convert a name prefix to a Bloom filter key.