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

    Function memoryview_at

    • View size bytes of memory.

      Python equivalent: ctypes.memoryview_at(ptr, size, readonly=False)

      Parameters

      • ptr: string | MemoryTarget

        What c_void_p takes: an address, a ctypes array, a pointer, a c_void_p instance, byref() or a Buffer; structure, union and other scalar instances are an ArgumentError, as in Python: pass byref(x)

      • size: IntegerArgument

        Bytes (a C ssize_t; negative is a RangeError)

      • Optionalreadonly: false

        A read-only view (see ReadonlyMemoryView)

      Returns MemoryView

      A live view of the memory

    • View size bytes of memory.

      Python equivalent: ctypes.memoryview_at(ptr, size, readonly=False)

      Parameters

      • ptr: string | MemoryTarget

        What c_void_p takes: an address, a ctypes array, a pointer, a c_void_p instance, byref() or a Buffer; structure, union and other scalar instances are an ArgumentError, as in Python: pass byref(x)

      • size: IntegerArgument

        Bytes (a C ssize_t; negative is a RangeError)

      • readonly: true

        A read-only view (see ReadonlyMemoryView)

      Returns ReadonlyMemoryView

      A live view of the memory

    • View size bytes of memory.

      Python equivalent: ctypes.memoryview_at(ptr, size, readonly=False)

      Parameters

      • ptr: string | MemoryTarget

        What c_void_p takes: an address, a ctypes array, a pointer, a c_void_p instance, byref() or a Buffer; structure, union and other scalar instances are an ArgumentError, as in Python: pass byref(x)

      • size: IntegerArgument

        Bytes (a C ssize_t; negative is a RangeError)

      • readonly: boolean

        A read-only view (see ReadonlyMemoryView)

      Returns MemoryView | ReadonlyMemoryView

      A live view of the memory