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#shared?

shared? → true or false

If the buffer is shared, meaning it references memory that can be shared with other processes (and thus might change without being modified locally).

See also #set_values #size #set_value #slice also in 4.0 · 3.4 · 3.3