Module: RQRCode::CoreExtensions::Integer::Bitwise
- Included in:
- Integer
- Defined in:
- lib/rqrcode/core_ext/integer/bitwise.rb
Instance Method Summary collapse
Instance Method Details
#rszf(count) ⇒ Object
5 6 7 8 |
# File 'lib/rqrcode/core_ext/integer/bitwise.rb', line 5 def rszf(count) # zero fill right shift (self >> count) & ((2 ** ((self.size * 8) - count))-1) end |