Class: PEdump::NE::StringTable
Class Method Summary collapse
-
.read(f, size = SIZE) ⇒ Object
An array of one or more String structures.
Class Method Details
.read(f, size = SIZE) ⇒ Object
An array of one or more String structures.
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/pedump/ne/version_info.rb', line 96 def self.read f, size = SIZE pos0 = f.tell super.tap do |x| x.szKey.chomp!("\x00") x.Padding = f.tell%4 > 0 ? f.read(4 - f.tell%4) : nil x.Children = [] while !f.eof? && f.tell < pos0+x.wLength x.Children << VersionString.read(f) end end end |