import_buffer#

NyxExternalMemoryImporter.import_buffer(exported)[source]#

Import a buffer exported by Nyx (an object with handle, allocationSize and size).

The import takes the whole dedicated allocation, as the compute APIs require, and maps the bytes Nyx reads or writes. The OS handle is released either way, the import holds its own reference.

Return type:

NyxImportedBuffer