Method: Net::NTLM::SecurityBuffer#parse

Defined in:
lib/www/ntlm-http/lib/net/ntlm_http.rb

#parse(str, offset = 0) ⇒ Object



493
494
495
496
497
498
499
500
501
# File 'lib/www/ntlm-http/lib/net/ntlm_http.rb', line 493

def parse(str, offset=0)
  if @active and str.size >= offset + @size
    super(str, offset)
    @value = str[self.offset, self.length]
    @size
  else
    0
  end
end