class Rex::Proto::NTLM::Base::Int32LE
Public Class Methods
new(opt)
click to toggle source
Calls superclass method
Rex::Proto::NTLM::Base::Field::new
# File lib/rex/proto/ntlm/base.rb, line 118 def initialize(opt) super(opt) @size = 4 end
Public Instance Methods
parse(str, offset=0)
click to toggle source
# File lib/rex/proto/ntlm/base.rb, line 123 def parse(str, offset=0) if @active and str.size >= offset + @size @value = str.slice(offset, @size).unpack("V")[0] @size else 0 end end
serialize()
click to toggle source
# File lib/rex/proto/ntlm/base.rb, line 132 def serialize [@value].pack("V") if @active end