Class: BinStruct::SInt64n

Inherits:
SInt64 show all
Defined in:
lib/bin_struct/int.rb

Overview

Native endian 8-byte signed integer

Author:

  • LemonTree55

Instance Attribute Summary

Attributes inherited from Int

#default, #endian, #value, #width

Instance Method Summary collapse

Methods inherited from Int

#format_inspect, #from_human, #nbits, #read, #sz, #to_f, #to_i, #to_s

Methods included from Structable

#format_inspect, #read, #sz, #to_human, #to_s, #type_name

Constructor Details

#initialize(options = {}) ⇒ SInt64n

Returns a new instance of SInt64n.

Parameters:

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

Options Hash (options):

  • :value (Integer)


491
492
493
494
# File 'lib/bin_struct/int.rb', line 491

def initialize(options = {})
  opts = { value: options[:value], endian: :native }
  super(opts)
end