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

    Interface CharBufferValue

    Text accessors of c_char buffers (arrays, create_string_buffer).

    interface CharBufferValue {
        get value(): string;
        set value(v: string | Uint8Array<ArrayBufferLike>): void;
        get raw(): Buffer;
        set raw(v: string | Uint8Array<ArrayBufferLike>): void;
    }
    Index
    • get value(): string

      Bytes up to the first NUL, decoded as UTF-8. Python: .value.

      Returns string

    • set value(v: string | Uint8Array<ArrayBufferLike>): void

      Parameters

      • v: string | Uint8Array<ArrayBufferLike>

      Returns void

    • get raw(): Buffer

      All bytes. Python: .raw.

      Returns Buffer

    • set raw(v: string | Uint8Array<ArrayBufferLike>): void

      Parameters

      • v: string | Uint8Array<ArrayBufferLike>

      Returns void