Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.3 · 3.1