GitHubAppDocsPlayground
  • Preparing search index...
  • The search index is not available
CCC Docs
  • CCC Docs
  • @ckb-ccc core
  • index
  • ccc
  • mol
  • struct

Function struct

  • struct<T, Encodable, Decoded>(codecLayout): Codec<Encodable, Decoded>
  • Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields. The size of a struct is the sum of all fields' size.

    Type Parameters

    • T extends Record<string, CodecLike<any, any>>
    • Encodable extends EncodableRecord<T>
    • Decoded extends DecodedRecord<T>

    Parameters

    • codecLayout: T

      a object contains all fields' codec

    Returns Codec<Encodable, Decoded>

    • Defined in molecule/codec.ts:542

Settings

Member Visibility
GitHubAppDocsPlayground
CCC Docs
  • Loading...

Generated using TypeDoc