Ruby: rb_io_encoding Struct Reference

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

Data Fields
rb_io_encoding Struct Reference

Decomposed encoding flags (e.g. More...

`#include <io.h>`

## Data Fields
rb_encoding * | enc
| Internal encoding.
rb_encoding * | enc2
| External encoding.
int | ecflags
| Flags.
VALUE | ecopts
| Flags as Ruby hash.

## Detailed Description

Decomposed encoding flags (e.g.

"enc:enc2"").

Definition at line 119 of file io.h.

## Field Documentation

## ◆ ecflags

int rb_io_encoding::ecflags

Flags.

See also
  enum ruby_econv_flag_type

Definition at line 129 of file io.h.

Referenced by rb_io_extract_modeenc().

## ◆ ecopts

VALUE rb_io_encoding::ecopts

Flags as Ruby hash.

Definition at line 137 of file io.h.

Referenced by rb_io_extract_modeenc().

## ◆ enc

rb_encoding* rb_io_encoding::enc

Internal encoding.

Definition at line 121 of file io.h.

Referenced by rb_io_extract_modeenc().

## ◆ enc2

rb_encoding* rb_io_encoding::enc2

External encoding.

Definition at line 123 of file io.h.

Referenced by rb_io_extract_modeenc().

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

- include/ruby/io.h