|
Ruby 3.5.0dev (2025-10-30 revision 3ca4321680faea98b30fb41d5b18c21b74e1261c)
|
IO buffers. More...
#include <io.h>
Data Fields | |
| char * | ptr |
Pointer to the underlying memory region, of at least capa bytes. | |
| int | off |
Offset inside of ptr. | |
| int | len |
| Length of the buffer. | |
| int | capa |
| Designed capacity of the buffer. | |
IO buffers.
This is an implementation detail of rb_io_t::wbuf and rb_io_t::rbuf. People don't manipulate it directly.
| int rb_io_internal_buffer::capa |
| int rb_io_internal_buffer::len |
Length of the buffer.
Definition at line 118 of file io.h.
Referenced by rb_io_check_char_readable(), rb_io_check_writable(), rb_io_getbyte(), and rb_io_ungetc().
| int rb_io_internal_buffer::off |
Offset inside of ptr.
Definition at line 115 of file io.h.
Referenced by rb_io_getbyte(), and rb_io_ungetc().
| char* rb_io_internal_buffer::ptr |
Pointer to the underlying memory region, of at least capa bytes.
Definition at line 112 of file io.h.
Referenced by rb_io_getbyte(), and rb_io_ungetc().