Sha256: 0f944f0aefcb3034d6bfb8c9b6b6764682efb4027fbc3293db57e13c71b88f12
Contents?: true
Size: 611 Bytes
Versions: 11
Compression:
Stored size: 611 Bytes
Contents
module Net module NTLM class String < Field def initialize(opts) super(opts) @size = opts[:size] end def parse(str, offset=0) if @active and str.size >= offset + @size @value = str[offset, @size] @size else 0 end end def serialize if @active @value.to_s else "" end end def value=(val) @value = val @size = @value.nil? ? 0 : @value.size @active = (@size > 0) end end end end
Version data entries
11 entries across 11 versions & 3 rubygems