Ruby: rb_memory_view_entry Struct Reference

Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)

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.
rb_memory_view_release_func_t | release_func
| Releases a memory view that was previously generated using rb_memory_view_entry_t::get_func.
rb_memory_view_available_p_func_t | available_p_func
| Queries if an object understands memory view protocol.

## 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:

- include/ruby/memory_view.h