Class AdvancedType<T, ST>

Type Parameters

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

  • Type Parameters

    Parameters

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

            • buf: Uint8Array
            • Optional ctx: {}

              Returns T

        • Optional getFfiTypeStruct?: (() => SimpleType<T>)
        • Optional toBuffer?: ((data, ctx?) => Uint8Array)
            • (data, ctx?): Uint8Array
            • Parameters

              • data: T
              • Optional ctx: {}

                Returns Uint8Array

        Returns AdvancedType<T, ST>

      Properties

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

      Methods

      • Parameters

        • buffer: Uint8Array
        • Optional ctx: {}

          Returns T

        • Parameters

          • data: T
          • Optional ctx: {}

            Returns Uint8Array

          Generated using TypeDoc