Skip to content
instance method

IO::Buffer#empty?

() -> bool
empty? → true or false

If the buffer has 0 size: it is created by ::new with size 0, or with ::for from an empty string. (Note that empty files can’t be mapped, so the buffer created with ::map will never be empty.)

See also #each_byte #external? #each #free also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1