summaryrefslogtreecommitdiff
path: root/include/ruby/io
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-12-20 23:06:21 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-12-21 12:25:42 +1300
commit617687df097b8e9646be312c9fdf062090994a37 (patch)
tree125cbdafec97734e5f6b0c8d51445501c6ddbb68 /include/ruby/io
parent9fbf94ff042f91ecde094ff579784fa52efbc7a1 (diff)
downloadruby-617687df097b8e9646be312c9fdf062090994a37.tar.gz
Rename IMMUTABLE to READONLY.
Diffstat (limited to 'include/ruby/io')
-rw-r--r--include/ruby/io/buffer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ruby/io/buffer.h b/include/ruby/io/buffer.h
index e778234ada..1154b98bdd 100644
--- a/include/ruby/io/buffer.h
+++ b/include/ruby/io/buffer.h
@@ -44,7 +44,7 @@ enum rb_io_buffer_flags {
RB_IO_BUFFER_PRIVATE = 64,
// The buffer is read-only and cannot be modified.
- RB_IO_BUFFER_IMMUTABLE = 128
+ RB_IO_BUFFER_READONLY = 128
};
enum rb_io_buffer_endian {
@@ -71,8 +71,10 @@ VALUE rb_io_buffer_lock(VALUE self);
VALUE rb_io_buffer_unlock(VALUE self);
VALUE rb_io_buffer_free(VALUE self);
-void rb_io_buffer_get_mutable(VALUE self, void **base, size_t *size);
-void rb_io_buffer_get_immutable(VALUE self, const void **base, size_t *size);
+int rb_io_buffer_readonly_p(VALUE self);
+
+void rb_io_buffer_get(VALUE self, void **base, size_t *size);
+void rb_io_buffer_get_readonly(VALUE self, const void **base, size_t *size);
VALUE rb_io_buffer_transfer(VALUE self);
void rb_io_buffer_resize(VALUE self, size_t size);