Ruby 3.5.0dev (2025-04-04 revision cd8c203ffb50fe41852f90936b701b97a0fa77e7)
|
Go to the source code of this file.
Macros | |
#define | RB_IO_BUFFER_EXPERIMENTAL 1 |
#define | RUBY_IO_BUFFER_VERSION 2 |
Functions | |
VALUE | rb_io_buffer_new (void *base, size_t size, enum rb_io_buffer_flags flags) |
VALUE | rb_io_buffer_map (VALUE io, size_t size, rb_off_t offset, enum rb_io_buffer_flags flags) |
VALUE | rb_io_buffer_lock (VALUE self) |
VALUE | rb_io_buffer_unlock (VALUE self) |
int | rb_io_buffer_try_unlock (VALUE self) |
VALUE | rb_io_buffer_free (VALUE self) |
VALUE | rb_io_buffer_free_locked (VALUE self) |
enum rb_io_buffer_flags | rb_io_buffer_get_bytes (VALUE self, void **base, size_t *size) |
void | rb_io_buffer_get_bytes_for_reading (VALUE self, const void **base, size_t *size) |
void | rb_io_buffer_get_bytes_for_writing (VALUE self, void **base, size_t *size) |
VALUE | rb_io_buffer_transfer (VALUE self) |
void | rb_io_buffer_resize (VALUE self, size_t size) |
void | rb_io_buffer_clear (VALUE self, uint8_t value, size_t offset, size_t length) |
VALUE | rb_io_buffer_read (VALUE self, VALUE io, size_t length, size_t offset) |
VALUE | rb_io_buffer_pread (VALUE self, VALUE io, rb_off_t from, size_t length, size_t offset) |
VALUE | rb_io_buffer_write (VALUE self, VALUE io, size_t length, size_t offset) |
VALUE | rb_io_buffer_pwrite (VALUE self, VALUE io, rb_off_t from, size_t length, size_t offset) |
Variables | |
VALUE | rb_cIOBuffer |
size_t | RUBY_IO_BUFFER_PAGE_SIZE |
size_t | RUBY_IO_BUFFER_DEFAULT_SIZE |
Definition in file buffer.h.
void rb_io_buffer_clear | ( | VALUE | self, |
uint8_t | value, | ||
size_t | offset, | ||
size_t | length | ||
) |
Definition at line 2620 of file io_buffer.c.
Definition at line 1451 of file io_buffer.c.
Definition at line 1465 of file io_buffer.c.
enum rb_io_buffer_flags rb_io_buffer_get_bytes | ( | VALUE | self, |
void ** | base, | ||
size_t * | size | ||
) |
Definition at line 825 of file io_buffer.c.
void rb_io_buffer_get_bytes_for_reading | ( | VALUE | self, |
const void ** | base, | ||
size_t * | size | ||
) |
Definition at line 893 of file io_buffer.c.
void rb_io_buffer_get_bytes_for_writing | ( | VALUE | self, |
void ** | base, | ||
size_t * | size | ||
) |
Definition at line 868 of file io_buffer.c.
Definition at line 1331 of file io_buffer.c.
Definition at line 621 of file io_buffer.c.
VALUE rb_io_buffer_new | ( | void * | base, |
size_t | size, | ||
enum rb_io_buffer_flags | flags | ||
) |
Definition at line 608 of file io_buffer.c.
Definition at line 2916 of file io_buffer.c.
Definition at line 3145 of file io_buffer.c.
Definition at line 2799 of file io_buffer.c.
void rb_io_buffer_resize | ( | VALUE | self, |
size_t | size | ||
) |
Definition at line 1681 of file io_buffer.c.
Definition at line 1634 of file io_buffer.c.
int rb_io_buffer_try_unlock | ( | VALUE | self | ) |
Definition at line 1363 of file io_buffer.c.
Definition at line 1352 of file io_buffer.c.
Definition at line 3036 of file io_buffer.c.
|
extern |
Definition at line 24 of file io_buffer.c.
|
extern |
Definition at line 32 of file io_buffer.c.
|
extern |
Definition at line 31 of file io_buffer.c.