class StructFu::Int64
Int64
is a eight byte value.
Public Class Methods
new(v=nil, e=:big)
click to toggle source
Calls superclass method
StructFu::Int::new
# 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
Public Instance Methods
to_s()
click to toggle source
Returns a eight byte value as a packed string.
# File lib/packetfu/structfu.rb, line 175 def to_s @packstr = (self.e == :big) ? 'Q>' : 'Q<' [(self.v || self.d)].pack(@packstr) end