Method: Bytepack::Basic.preprocess
- Defined in:
- lib/bytepack/basic.rb
.preprocess(bytes, offset, format, length = 0) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/bytepack/basic.rb', line 5 def preprocess(bytes, offset, format, length = 0) format += length.to_s if !(self <= FixedSize) && length > 1 format = offset > 0 ? "@#{offset}#{format}" : format offset += length [offset, format] end |