• Parameters

    Returns {
        description: string;
        deserialize: ((buffer: Uint8Array, offset?: number) => [bigint, number]);
        fixedSize: null | number;
        maxSize: null | number;
        serialize: ((value: number | bigint) => Uint8Array);
    }

    • description: string

      A description for the serializer.

    • deserialize: ((buffer: Uint8Array, offset?: number) => [bigint, number])
        • (buffer: Uint8Array, offset?: number): [bigint, number]
        • The function that deserializes a value from bytes. It returns the deserialized value and the number of bytes read.

          Parameters

          • buffer: Uint8Array
          • Optional offset: number

          Returns [bigint, number]

    • fixedSize: null | number

      The fixed size of the serialized value in bytes, or null if it is variable.

    • maxSize: null | number

      The maximum size a serialized value can be in bytes, or null if it is variable.

    • serialize: ((value: number | bigint) => Uint8Array)
        • (value: number | bigint): Uint8Array
        • Parameters

          • value: number | bigint

          Returns Uint8Array

Generated using TypeDoc