nanokv
    Preparing search index...

    Interface ProtocolEncoding

    A interface for defining custom serialize and deserialize method.

    Note: you should always use same encoding method across difference client of a NanoKV instance, or bad thing can happen.

    interface ProtocolEncoding {
        deserialize(data: Uint8Array): any;
        serialize(value: unknown): Uint8Array;
    }
    Index

    Methods

    • Parameters

      • data: Uint8Array

      Returns any

    • Parameters

      • value: unknown

      Returns Uint8Array