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

    Function string_at

    • Read the bytes of a C string from an address or buffer.

      Python equivalent: ctypes.string_at (which returns bytes): each byte is one character (Latin-1), with or without size; use Buffer.from(s, "latin1") for the bytes. c_char_p.value decodes UTF-8.

      Parameters

      • address: string | MemoryTarget

        Buffer, BigInt address, or numeric address (a JS string is read as a wchar_t *, as CPython's str)

      • Optionalsize: IntegerArgument

        Bytes to read (-1 or omitted: up to the terminator); a Number, BigInt or boolean, a C int as in CPython (modulo 2**32)

      Returns string