• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/codecs-data-structures
  • getSetDecoder

Function getSetDecoder

  • getSetDecoder<TTo>(
        item: Decoder<TTo>,
        config: SetCodecConfig<NumberDecoder> & { size: 0 },
    ): FixedSizeDecoder<Set<TTo>, 0>
  • Decodes an set of items.

    Type Parameters

    • TTo

    Parameters

    • item: Decoder<TTo>

      The encoder to use for the set's items.

    • config: SetCodecConfig<NumberDecoder> & { size: 0 }

      A set of config for the encoder.

    Returns FixedSizeDecoder<Set<TTo>, 0>

    • Defined in packages/codecs-data-structures/src/set.ts:59
  • getSetDecoder<TTo>(
        item: FixedSizeDecoder<TTo>,
        config: SetCodecConfig<NumberDecoder> & { size: number },
    ): FixedSizeDecoder<Set<TTo>>
  • Decodes an set of items.

    Type Parameters

    • TTo

    Parameters

    • item: FixedSizeDecoder<TTo>

      The encoder to use for the set's items.

    • config: SetCodecConfig<NumberDecoder> & { size: number }

      A set of config for the encoder.

    Returns FixedSizeDecoder<Set<TTo>>

    • Defined in packages/codecs-data-structures/src/set.ts:63
  • getSetDecoder<TTo>(
        item: Decoder<TTo>,
        config?: SetCodecConfig<NumberDecoder>,
    ): VariableSizeDecoder<Set<TTo>>
  • Decodes an set of items.

    Type Parameters

    • TTo

    Parameters

    • item: Decoder<TTo>

      The encoder to use for the set's items.

    • Optionalconfig: SetCodecConfig<NumberDecoder>

      A set of config for the encoder.

    Returns VariableSizeDecoder<Set<TTo>>

    • Defined in packages/codecs-data-structures/src/set.ts:67

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc