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.
483 484 485 486 487 488 489 490 |
# File 'lib/openc3/packets/structure.rb', line 483 def buffer(copy = true) local_buffer = allocate_buffer_if_needed() if copy return local_buffer.dup else return local_buffer end end |