Class: FFI::Chm::Struct::Encint
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- FFI::Chm::Struct::Encint
- Defined in:
- lib/ffi-chm/struct/encint.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ffi-chm/struct/encint.rb', line 4 def get shift = -7 rawdata.inject(0) do |r, v| shift += 7 r | (v & 0x7F) << shift end end |