hacked in some lamey signedness foo
git-svn-id: file:///home/svn/incoming/trunk@2846 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
baef7224af
commit
ba3ee22e37
|
@ -48,11 +48,15 @@ class CStruct < SStruct
|
|||
attr_reader :v
|
||||
|
||||
@@dt_table = {
|
||||
'int8' => proc { |*a| Rex::Struct2::Generic.new('C', true, *a) },
|
||||
'uint8' => proc { |*a| Rex::Struct2::Generic.new('C', false, *a) },
|
||||
'int16v' => proc { |*a| Rex::Struct2::Generic.new('v', true, *a) },
|
||||
'uint16v' => proc { |*a| Rex::Struct2::Generic.new('v', false, *a) },
|
||||
'int32v' => proc { |*a| Rex::Struct2::Generic.new('V', true, *a) },
|
||||
'uint32v' => proc { |*a| Rex::Struct2::Generic.new('V', false, *a) },
|
||||
'int16n' => proc { |*a| Rex::Struct2::Generic.new('n', true, *a) },
|
||||
'uint16n' => proc { |*a| Rex::Struct2::Generic.new('n', false, *a) },
|
||||
'int32n' => proc { |*a| Rex::Struct2::Generic.new('N', true, *a) },
|
||||
'uint32n' => proc { |*a| Rex::Struct2::Generic.new('N', false, *a) },
|
||||
'string' => proc { |*a| Rex::Struct2::SString.new(*a) },
|
||||
'sstruct' => proc { |*a| Rex::Struct2::SStruct.new(*a) },
|
||||
|
|
Loading…
Reference in New Issue