Ruby  3.4.0dev (2024-12-06 revision 892c46283a5ea4179500d951c9d4866c0051f27b)
Data Fields
rb_memory_view_entry Struct Reference

Operations applied to a specific kind of a memory view. More...

#include <memory_view.h>

Data Fields

rb_memory_view_get_func_t get_func
 Exports a memory view from a Ruby object. More...
 
rb_memory_view_release_func_t release_func
 Releases a memory view that was previously generated using rb_memory_view_entry_t::get_func. More...
 
rb_memory_view_available_p_func_t available_p_func
 Queries if an object understands memory view protocol. More...
 

Detailed Description

Operations applied to a specific kind of a memory view.

Definition at line 166 of file memory_view.h.

Field Documentation

◆ available_p_func

rb_memory_view_available_p_func_t rb_memory_view_entry::available_p_func

Queries if an object understands memory view protocol.

Definition at line 181 of file memory_view.h.

Referenced by rb_memory_view_available_p(), and rb_memory_view_get().

◆ get_func

rb_memory_view_get_func_t rb_memory_view_entry::get_func

Exports a memory view from a Ruby object.

Definition at line 170 of file memory_view.h.

Referenced by rb_memory_view_get().

◆ release_func

rb_memory_view_release_func_t rb_memory_view_entry::release_func

Releases a memory view that was previously generated using rb_memory_view_entry_t::get_func.

Definition at line 176 of file memory_view.h.

Referenced by rb_memory_view_release().


The documentation for this struct was generated from the following file: