Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
IO::Buffer::InvalidatedError
Raised if you try to access a buffer slice which no longer references a valid memory range of the underlying source.