Method: OpenC3::Structure#read_all
- Defined in:
- lib/openc3/packets/structure.rb
#read_all(value_type = :RAW, buffer = @buffer, top = true) ⇒ Array<Array>
Read all items in the structure into an array of arrays
[[item name, item value], ...]
420 421 422 423 424 425 426 |
# File 'lib/openc3/packets/structure.rb', line 420 def read_all(value_type = :RAW, buffer = @buffer, top = true) item_array = [] synchronize_allow_reads(top) do @sorted_items.each { |item| item_array << [item.name, read_item(item, value_type, buffer)] } end return item_array end |