Ruby  3.3.0dev (2023-06-01 revision 957b6a491fe6a9a2df467f83a37e7c34861f995c)
Data Fields
rb_io_buffer_t Struct Reference

IO buffers. More...

#include <io.h>

Data Fields

char * ptr
 Pointer to the underlying memory region, of at least capa bytes. More...
 
int off
 Offset inside of ptr. More...
 
int len
 Length of the buffer. More...
 
int capa
 Designed capacity of the buffer. More...
 

Detailed Description

IO buffers.

This is an implementation detail of rb_io_t::wbuf and rb_io_t::rbuf. People don't manipulate it directly.

Definition at line 92 of file io.h.

Field Documentation

◆ capa

int rb_io_buffer_t::capa

Designed capacity of the buffer.

Definition at line 104 of file io.h.

Referenced by rb_io_ungetc().

◆ len

int rb_io_buffer_t::len

Length of the buffer.

Definition at line 101 of file io.h.

Referenced by rb_io_check_char_readable(), rb_io_check_writable(), rb_io_getbyte(), and rb_io_ungetc().

◆ off

int rb_io_buffer_t::off

Offset inside of ptr.

Definition at line 98 of file io.h.

Referenced by rb_io_getbyte(), and rb_io_ungetc().

◆ ptr

char* rb_io_buffer_t::ptr

Pointer to the underlying memory region, of at least capa bytes.

Definition at line 95 of file io.h.

Referenced by rb_io_getbyte(), and rb_io_ungetc().


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