class Net::NTLM::Int32LE
Public Class Methods
Source
# File lib/net/ntlm/int32_le.rb, line 5 def initialize(opt) super(opt) @size = 4 end
Calls superclass method
Net::NTLM::Field::new
Public Instance Methods
Source
# File lib/net/ntlm/int32_le.rb, line 10 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
Source
# File lib/net/ntlm/int32_le.rb, line 19 def serialize [@value].pack("V") if @active end