Skip to content
instance method

IO::Buffer#get_values

get_values(buffer_types, offset) → array

Similar to get_value, except that it can handle multiple buffer types and returns an array of values.

Example
string = [1.5, 2.5].pack('ff')
IO::Buffer.for(string).get_values([:f32, :f32], 0)
# => [1.5, 2.5]