Skip to content
instance method

IO::Buffer#external?

() -> bool
external? → true or false

The buffer is external if it references the memory which is not allocated or mapped by the buffer itself.

A buffer created using ::for has an external reference to the string’s memory.

External buffer can’t be resized.

See also #empty? #free #each_byte #get_string also in 3.4 · 3.3 · 3.2 · 3.1