Implement IO::Buffer on VWA
This commit is contained in:
parent
1822acdf33
commit
8e6f63df47
@ -261,8 +261,6 @@ rb_io_buffer_type_free(void *_buffer)
|
||||
struct rb_io_buffer *buffer = _buffer;
|
||||
|
||||
io_buffer_free(buffer);
|
||||
|
||||
xfree(buffer);
|
||||
}
|
||||
|
||||
size_t
|
||||
@ -286,7 +284,7 @@ static const rb_data_type_t rb_io_buffer_type = {
|
||||
.dsize = rb_io_buffer_type_size,
|
||||
},
|
||||
.data = NULL,
|
||||
.flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED,
|
||||
.flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE,
|
||||
};
|
||||
|
||||
// Extract an offset argument, which must be a positive integer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user