Method: OpenC3::Structure#buffer=

Defined in:
lib/openc3/packets/structure.rb

#buffer=(buffer) ⇒ Object

Set the buffer to be used by the structure. The buffer is copied and thus further modifications to the buffer have no effect on the structure items.

Parameters:

  • buffer (String)

    Buffer of data to back the stucture items



481
482
483
484
485
# File 'lib/openc3/packets/structure.rb', line 481

def buffer=(buffer)
  synchronize() do
    internal_buffer_equals(buffer)
  end
end