Method: BinStruct::SInt64#initialize

Defined in:
lib/bin_struct/int.rb

#initialize(options = {}) ⇒ SInt64

Returns a new instance of SInt64.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :value (Integer)
  • :endian (:big, :little, :native)


458
459
460
461
462
# File 'lib/bin_struct/int.rb', line 458

def initialize(options = {})
  opts = options.slice(:value, :endian)
  super(opts)
  @packstr = { big: 'q>', little: 'q<', native: 'q' }
end