Ruby: rb_memory_view_item_component_t Struct Reference

Ruby 3.4.8p72 (2025-12-17 revision 995b59f66677d44767ce9faac6957e5543617ff9)

Data Fields
rb_memory_view_item_component_t Struct Reference

Memory view component metadata. More...

`#include <memory_view.h>`

## Data Fields
char | format
bool | native_size_p
| :FIXME: what is a "native" size is unclear.
bool | little_endian_p
| 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

bool 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

bool 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