class StructFu::Int32
Int32
is a four byte value.
Public Class Methods
Source
# File lib/packetfu/structfu.rb, line 141 def initialize(v=nil, e=:big) super(v,e,w=4) @packstr = (self.e == :big) ? "N" : "V" end
Calls superclass method
StructFu::Int::new
Public Instance Methods
Source
# File lib/packetfu/structfu.rb, line 147 def to_s @packstr = (self.e == :big) ? "N" : "V" [(self.v || self.d)].pack(@packstr) end
Returns a four byte value as a packed string.