Object
base class of data structure
@macro int16le_security_buffer
@method $1 @method $1= @return [Int16LE]
# File lib/net/ntlm/field_set.rb, line 20 def int16LE(name, opts) add_field(name, Net::NTLM::Int16LE, opts) end
@macro int32le_security_buffer
@method $1 @method $1= @return [Int32LE]
# File lib/net/ntlm/field_set.rb, line 28 def int32LE(name, opts) add_field(name, Net::NTLM::Int32LE, opts) end
@macro int64le_security_buffer
@method $1 @method $1= @return [Int64]
# File lib/net/ntlm/field_set.rb, line 36 def int64LE(name, opts) add_field(name, Net::NTLM::Int64LE, opts) end
# File lib/net/ntlm/field_set.rb, line 52 def names return [] if @proto.nil? @proto.map{|n, t, o| n} end
# File lib/net/ntlm/field_set.rb, line 87 def initialize @alist = self.class.prototypes.map{ |n, t, o| [n, t.new(o)] } end
# File lib/net/ntlm/field_set.rb, line 62 def opts return [] if @proto.nil? @proto.map{|n, t, o| o} end
# File lib/net/ntlm/field_set.rb, line 48 def prototypes @proto end
@macro security_buffer
@method $1 @method $1= @return [SecurityBuffer]
# File lib/net/ntlm/field_set.rb, line 44 def security_buffer(name, opts) add_field(name, Net::NTLM::SecurityBuffer, opts) end
# File lib/net/ntlm/field_set.rb, line 103 def [](name) a = @alist.assoc(name.to_s.intern) raise ArgumentError, "no such field: #{name}" unless a a[1] end
# File lib/net/ntlm/field_set.rb, line 109 def []=(name, val) a = @alist.assoc(name.to_s.intern) raise ArgumentError, "no such field: #{name}" unless a a[1] = val end
# File lib/net/ntlm/field_set.rb, line 119 def disable(name) self[name].active = false end
# File lib/net/ntlm/field_set.rb, line 115 def enable(name) self[name].active = true end
# File lib/net/ntlm/field_set.rb, line 95 def parse(str, offset=0) @alist.inject(offset){|cur, a| cur += a[1].parse(str, cur)} end
Generated with the Darkfish Rdoc Generator 2.