Module: NBTFile::Private::CommonMethods

Included in:
EmitMethods, ReadMethods
Defined in:
lib/nbtfile.rb

Instance Method Summary collapse

Instance Method Details

#sign_bit(n_bytes) ⇒ Object



123
124
125
# File 'lib/nbtfile.rb', line 123

def sign_bit(n_bytes)
  1 << ((n_bytes << 3) - 1)
end