Class: FFI::Chm::Struct::Encint

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/ffi-chm/struct/encint.rb

Instance Method Summary collapse

Instance Method Details

#getObject



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