Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

IO::Buffer#size

size → integer

Returns the size of the buffer that was explicitly set (on creation with ::new or on resize), or deduced on buffer’s creation from string or file.

See also #shared? #slice #set_values #to_s also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1