class StructFu::Int64
Int64
is a eight byte value.
Public Class Methods
Source
# File lib/packetfu/structfu.rb, line 169 def initialize(v=nil, e=:big) super(v, e, w=4) @packstr = (self.e == :big) ? 'Q>' : 'Q<' end
Calls superclass method
StructFu::Int::new
Public Instance Methods
Source
# File lib/packetfu/structfu.rb, line 175 def to_s @packstr = (self.e == :big) ? 'Q>' : 'Q<' [(self.v || self.d)].pack(@packstr) end
Returns a eight byte value as a packed string.