Class: PacketGen::Types::Int64
Overview
8-byte unsigned integer
Instance Attribute Summary
Attributes inherited from Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(value = nil, endian = :big) ⇒ Int64
constructor
A new instance of Int64.
Methods inherited from Int
#read, #sz, #to_f, #to_i, #to_s
Constructor Details
#initialize(value = nil, endian = :big) ⇒ Int64
Returns a new instance of Int64.
297 298 299 300 |
# File 'lib/packetgen/types/int.rb', line 297 def initialize(value=nil, endian=:big) super(value, endian, 8) @packstr = { big: 'Q>', little: 'Q<' } end |