Skip to content
instance method

IO::Buffer#values

values(buffer_type, [offset, [count]]) → array

Returns an array of values of buffer_type starting from offset.

If count is given, only count values will be returned.

Example
IO::Buffer.for("Hello World").values(:U8, 2, 2)
# => [108, 108]
See also #valid? #write #transfer #xor! also in 4.1 · 3.4 · 3.3 · 3.2