Method: BinData::Stringz#snapshot
- Defined in:
- lib/bindata/stringz.rb
#snapshot ⇒ Object
35 36 37 38 39 |
# File 'lib/bindata/stringz.rb', line 35 def snapshot # override to always remove trailing zero bytes result = super trim_and_zero_terminate(result).chomp("\0") end |