Umi — API References - v1.3.0
    Preparing search index...
    • Parameters

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

      • description: string

        A description for the serializer.

      • deserialize: (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.

      • 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<ArrayBufferLike>