node-ctypes - v2.10.0
    Preparing search index...

    Class StructType

    Low-level native struct type. Prefer Structure for most use cases. Mutable only until captured by a field, array, prepared function/callback signature or native value. Finalization includes nested descriptors. Create a new descriptor rather than modifying a finalized layout.

    Index
    • Parameters

      • Optionaloptions: { union?: boolean; alignment?: number; memoryClass?: boolean }

      Returns StructType

    • Append a field while the builder is open; throws after finalization.

      Parameters

      Returns this

    • Query without finalizing an unused builder.

      Returns number

    • Query without finalizing an unused builder.

      Returns number

    • Materialize a value and finalize its layout.

      Parameters

      • Optionalvalues: Record<string, unknown>

      Returns Record<string, unknown> & { _buffer: Buffer }

    • Parameters

      • buffer: Buffer

      Returns Record<string, any>

    • Parameters

      • source: Buffer<ArrayBufferLike> | { _buffer: Buffer }

      Returns Record<string, unknown>