Ruby: rb_memory_view_item_component_t Struct Reference

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

Data Fields
rb_memory_view_item_component_t Struct Reference

Memory view component metadata. More...

`#include <memory_view.h>`

## Data Fields
char | format
unsigned | native_size_p: 1
| :FIXME: what is a "native" size is unclear.
unsigned | little_endian_p: 1
| Endian of the component.
size_t | offset
| The component's offset.
size_t | size
| The component's size.
size_t | repeat
| How many numbers of components are there.

## Detailed Description

Memory view component metadata.

Definition at line 45 of file memory_view.h.

## Field Documentation

## ◆ format

char rb_memory_view_item_component_t::format

See also
  rb_memory_view_t::format

Definition at line 47 of file memory_view.h.

## ◆ little_endian_p

unsigned rb_memory_view_item_component_t::little_endian_p

Endian of the component.

Definition at line 53 of file memory_view.h.

## ◆ native_size_p

unsigned rb_memory_view_item_component_t::native_size_p

:FIXME: what is a "native" size is unclear.

Definition at line 50 of file memory_view.h.

## ◆ offset

size_t rb_memory_view_item_component_t::offset

The component's offset.

Definition at line 56 of file memory_view.h.

## ◆ repeat

size_t rb_memory_view_item_component_t::repeat

How many numbers of components are there.

For instance "CCC"'s repeat is 3.

Definition at line 65 of file memory_view.h.

Referenced by rb_memory_view_extract_item_members().

## ◆ size

size_t rb_memory_view_item_component_t::size

The component's size.

Definition at line 59 of file memory_view.h.

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

- include/ruby/memory_view.h