Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

Data Structures | Data Fields
rb_io_t Struct Reference

`#include <io.h>`

## Data Structures
struct | rb_io_enc_t

## Data Fields
FILE * | stdio_file
int | fd
int | mode
rb_pid_t | pid
int | lineno
VALUE | pathv
void(* | finalize )(struct rb_io_t *, int)
rb_io_buffer_t | wbuf
rb_io_buffer_t | rbuf
VALUE | tied_io_for_writing
struct rb_io_t::rb_io_enc_t | encs
rb_econv_t * | readconv
rb_io_buffer_t | cbuf
rb_econv_t * | writeconv
VALUE | writeconv_asciicompat
int | writeconv_initialized
int | writeconv_pre_ecflags
VALUE | writeconv_pre_ecopts
VALUE | write_lock

## Detailed Description

Definition at line 66 of file io.h.

## Field Documentation

## ◆ cbuf

rb_io_buffer_t rb_io_t::cbuf

Definition at line 93 of file io.h.

Referenced by rb_io_memsize().

## ◆ encs

struct rb_io_t::rb_io_enc_t rb_io_t::encs

## ◆ fd

int rb_io_t::fd

Definition at line 68 of file io.h.

Referenced by rb_io_binmode(), rb_io_eof(), rb_io_fptr_finalize_internal(), rb_io_getbyte(), rb_io_read_check(), rsock_bsock_send(), rsock_getfamily(), rsock_init_sock(), rsock_io_socket_addrinfo(), and rsock_sock_listen().

## ◆ finalize

void(* rb_io_t::finalize) (struct rb_io_t *, int)

Definition at line 73 of file io.h.

## ◆ lineno

int rb_io_t::lineno

Definition at line 71 of file io.h.

## ◆ mode

int rb_io_t::mode

Definition at line 69 of file io.h.

Referenced by rb_io_binmode(), rb_io_check_char_readable(), rb_io_check_writable(), rb_io_getbyte(), rb_io_synchronized(), rsock_getfamily(), and rsock_init_sock().

## ◆ pathv

VALUE rb_io_t::pathv

Definition at line 72 of file io.h.

Referenced by rb_io_fptr_finalize_internal().

## ◆ pid

rb_pid_t rb_io_t::pid

Definition at line 70 of file io.h.

## ◆ rbuf

rb_io_buffer_t rb_io_t::rbuf

Definition at line 75 of file io.h.

Referenced by rb_io_check_writable(), and rb_io_memsize().

## ◆ readconv

rb_econv_t* rb_io_t::readconv

Definition at line 92 of file io.h.

Referenced by rb_io_binmode(), and rb_io_memsize().

## ◆ stdio_file

FILE* rb_io_t::stdio_file

Definition at line 67 of file io.h.

Referenced by rb_io_stdio_file().

## ◆ tied_io_for_writing

VALUE rb_io_t::tied_io_for_writing

Definition at line 77 of file io.h.

## ◆ wbuf

rb_io_buffer_t rb_io_t::wbuf

Definition at line 75 of file io.h.

Referenced by rb_io_check_char_readable(), and rb_io_memsize().

## ◆ write_lock

VALUE rb_io_t::write_lock

Definition at line 101 of file io.h.

## ◆ writeconv

rb_econv_t* rb_io_t::writeconv

Definition at line 95 of file io.h.

Referenced by rb_io_binmode(), and rb_io_memsize().

## ◆ writeconv_asciicompat

VALUE rb_io_t::writeconv_asciicompat

Definition at line 96 of file io.h.

## ◆ writeconv_initialized

int rb_io_t::writeconv_initialized

Definition at line 97 of file io.h.

## ◆ writeconv_pre_ecflags

int rb_io_t::writeconv_pre_ecflags

Definition at line 98 of file io.h.

Referenced by rb_io_binmode().

## ◆ writeconv_pre_ecopts

VALUE rb_io_t::writeconv_pre_ecopts

Definition at line 99 of file io.h.

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

- include/ruby/io.h