Class: PacketGen::Types::SInt64
- Defined in:
- lib/packetgen/types/int.rb
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) ⇒ SInt64
constructor
A new instance of SInt64.
Methods inherited from Int
#read, #sz, #to_f, #to_i, #to_s
Constructor Details
#initialize(value = nil, endian = :big) ⇒ SInt64
Returns a new instance of SInt64.
327 328 329 330 |
# File 'lib/packetgen/types/int.rb', line 327 def initialize(value=nil, endian=:big) super @packstr = { big: 'q>', little: 'q<' } end |