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

    Interface BitFieldDef

    A bit field definition created by the bitfield function.

    class Flags extends Structure {
    static _fields_ = [
    ["enabled", bitfield(c_uint32, 1)],
    ["mode", bitfield(c_uint32, 3)],
    ];
    }
    interface BitFieldDef {
        baseType: AnyType;
        bits: number;
        baseSize: number;
    }
    Index
    baseType: AnyType

    The underlying integer type.

    bits: number

    Number of bits.

    baseSize: number

    Size of the base type in bytes.