• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/codecs-core
  • createDecoder

Function createDecoder

  • createDecoder<TTo, TSize extends number>(
        decoder: Omit<FixedSizeDecoder<TTo, TSize>, "decode">,
    ): FixedSizeDecoder<TTo, TSize>
  • Fills the missing decode function using the existing read function.

    Type Parameters

    • TTo
    • TSize extends number

    Parameters

    • decoder: Omit<FixedSizeDecoder<TTo, TSize>, "decode">

    Returns FixedSizeDecoder<TTo, TSize>

    • Defined in packages/codecs-core/src/codec.ts:117
  • createDecoder<TTo>(
        decoder: Omit<VariableSizeDecoder<TTo>, "decode">,
    ): VariableSizeDecoder<TTo>
  • Fills the missing decode function using the existing read function.

    Type Parameters

    • TTo

    Parameters

    • decoder: Omit<VariableSizeDecoder<TTo>, "decode">

    Returns VariableSizeDecoder<TTo>

    • Defined in packages/codecs-core/src/codec.ts:120
  • createDecoder<TTo>(
        decoder:
            | Omit<FixedSizeDecoder<TTo, number>, "decode">
            | Omit<VariableSizeDecoder<TTo>, "decode">,
    ): Decoder<TTo>
  • Fills the missing decode function using the existing read function.

    Type Parameters

    • TTo

    Parameters

    • decoder:
          | Omit<FixedSizeDecoder<TTo, number>, "decode">
          | Omit<VariableSizeDecoder<TTo>, "decode">

    Returns Decoder<TTo>

    • Defined in packages/codecs-core/src/codec.ts:121

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc