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

    Interface StructOptions

    Options for struct creation.

    interface StructOptions {
        packed?: boolean;
        pack?: string | number | bigint | boolean;
        layout?: "gcc-sysv" | "ms";
        align?: number | bigint | boolean;
        swapped?: boolean;
    }
    Index
    packed?: boolean

    If true, disables padding between fields (as pack: 1).

    pack?: string | number | bigint | boolean

    Maximum field alignment in bytes, as Python's _pack_.

    layout?: "gcc-sysv" | "ms"

    Bit field layout, as Python's _layout_ ("ms" with pack, otherwise the platform's).

    align?: number | bigint | boolean

    Minimum alignment in bytes, as Python's _align_ (a boolean or BigInt is a Python int; 0 means 1).

    swapped?: boolean

    If true, stores multi-byte fields in non-native (swapped) byte order.