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

Function getConstantDecoder

  • getConstantDecoder<TConstant extends ReadonlyUint8Array>(
        constant: TConstant,
    ): FixedSizeDecoder<void, TConstant["length"]>
  • Creates a void decoder that reads the next bytes and fails if they do not match the provided constant.

    Type Parameters

    • TConstant extends ReadonlyUint8Array

    Parameters

    • constant: TConstant

    Returns FixedSizeDecoder<void, TConstant["length"]>

    • Defined in packages/codecs-data-structures/dist/types/constant.d.ts:9

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc