Method: OpenC3::Structure#buffer
- Defined in:
- lib/openc3/packets/structure.rb
#buffer(copy = true) ⇒ String
Get the buffer used by the structure. The current buffer is copied and thus modifications to the returned buffer will have no effect on the structure items.
467 468 469 470 471 472 473 474 |
# File 'lib/openc3/packets/structure.rb', line 467 def buffer(copy = true) local_buffer = allocate_buffer_if_needed() if copy return local_buffer.dup else return local_buffer end end |