Class AdvancedType<T, ST>

Type Parameters

Hierarchy (view full)

Implements

Constructors

  • Type Parameters

    Parameters

    • type: ST
    • conf: {
          fromBuffer?: ((buf: Uint8Array, ctx?: {}) => T);
          getFfiTypeStruct?: (() => SimpleType<T>);
          toBuffer?: ((data: T, ctx?: {}) => Uint8Array);
      }
      • OptionalfromBuffer?: ((buf: Uint8Array, ctx?: {}) => T)
          • (buf, ctx?): T
          • Parameters

            • buf: Uint8Array
            • Optionalctx: {}

              Returns T

        • OptionalgetFfiTypeStruct?: (() => SimpleType<T>)
        • OptionaltoBuffer?: ((data: T, ctx?: {}) => Uint8Array)
            • (data, ctx?): Uint8Array
            • Parameters

              • data: T
              • Optionalctx: {}

                Returns Uint8Array

        Returns AdvancedType<T, ST>

      Properties

      ffiType: ST
      ffiTypeStruct: SimpleType<T>
      name: string
      size: number

      Methods

      • Parameters

        • buffer: Uint8Array
        • Optionalctx: {}

          Returns T

        • Parameters

          • data: T
          • Optionalctx: {}

            Returns Uint8Array