• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/web3.js
  • getConstantCodec

Function getConstantCodec

  • getConstantCodec<TConstant extends ReadonlyUint8Array>(
        constant: TConstant,
    ): FixedSizeCodec<void, void, TConstant["length"]>
  • Creates a void codec that always sets the provided byte array when encoding and, when decoding, asserts that the next bytes match the provided byte array.

    Type Parameters

    • TConstant extends ReadonlyUint8Array

    Parameters

    • constant: TConstant

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

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

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc