tabernac!

git-svn-id: file:///home/svn/incoming/trunk@2840 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Spoon M 2005-08-13 21:39:42 +00:00
parent 0a67ecab42
commit 68c2551e5c
1 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ module Struct2
class SString class SString
require 'rex/struct2/element' require 'rex/struct2/element'
require 'rex/struct2/constant'
include Rex::Struct2::Element include Rex::Struct2::Element
attr_reader :size, :default, :pad attr_reader :size, :default, :pad
@ -23,8 +24,8 @@ class SString
if !newsize if !newsize
self.restraint = nil self.restraint = nil
else else
res = Rex::Struct2::Constant(size) res = Rex::Struct2::Constant.new(size)
self.restraint = Rex::Struct2::Restraint(res, res, true) self.restraint = Rex::Struct2::Restraint.new(res, res, true)
end end
end end