class Integer
Public Instance Methods
to_signed(bits_size)
click to toggle source
# File lib/ffi/struct_ex/struct_ex.rb, line 4 def to_signed(bits_size) self & (1 << bits_size - 1) != 0 ? self - (1 << bits_size) : self end