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

    Interface SimpleCDataInstance<T>

    Instance of a simple C data type.

    const x = new c_int32(42);
    console.log(x.value); // 42
    console.log(x._buffer); // <Buffer 2a 00 00 00>
    interface SimpleCDataInstance<T = any> {
        value: T;
        _buffer: Buffer;
        toString(): string;
        toJSON(): T;
        valueOf(): T;
        __ctypes_from_outparam__(): unknown;
    }

    Type Parameters

    • T = any
    Index
    value: T

    The current value.

    _buffer: Buffer

    The underlying memory buffer.

    • OUT conversion; defaults to the value for builtins and the instance for subclasses.

      Returns unknown