Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
|
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... | |
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_buffer_t::capa |
int rb_io_buffer_t::len |
Length of the buffer.
Definition at line 89 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_buffer_t::off |
Offset inside of ptr
.
Definition at line 89 of file io.h.
Referenced by rb_io_getbyte(), and rb_io_ungetc().
char* rb_io_buffer_t::ptr |
Pointer to the underlying memory region, of at least capa
bytes.
Definition at line 89 of file io.h.
Referenced by rb_io_getbyte(), and rb_io_ungetc().