class Watobo::NTLM::Int16LE
Public Class Methods
new(opt)
click to toggle source
Calls superclass method
Watobo::NTLM::Field::new
# File lib/watobo/utils/ntlm.rb, line 347 def initialize(opt) super(opt) @size = 2 end
Public Instance Methods
parse(str, offset=0)
click to toggle source
# File lib/watobo/utils/ntlm.rb, line 351 def parse(str, offset=0) if @active and str.size >= offset + @size @value = str[offset, @size].unpack("v")[0] @size else 0 end end
serialize()
click to toggle source
# File lib/watobo/utils/ntlm.rb, line 360 def serialize [@value].pack("v") end