Ruby: rb_io_enc_t Struct Reference

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

Data Fields
rb_io_enc_t 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 116 of file io.h.

## Field Documentation

## ◆ ecflags

int rb_io_enc_t::ecflags

Flags.

See also
  enum ruby_econv_flag_type

Definition at line 126 of file io.h.

Referenced by rb_io_extract_modeenc().

## ◆ ecopts

VALUE rb_io_enc_t::ecopts

Flags as Ruby hash.

Definition at line 134 of file io.h.

Referenced by rb_io_extract_modeenc().

## ◆ enc

rb_encoding* rb_io_enc_t::enc

Internal encoding.

Definition at line 118 of file io.h.

Referenced by rb_io_extract_modeenc().

## ◆ enc2

rb_encoding* rb_io_enc_t::enc2

External encoding.

Definition at line 120 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