class PEdump::VarFileInfo

Constants

Children
Padding

Public Class Methods

read(f, size = SIZE) click to toggle source
Calls superclass method
# File lib/pedump/version_info.rb, line 146
def self.read f, size = SIZE
  super.tap do |x|
    x.szKey.force_encoding('UTF-16LE').encode!('UTF-8').sub!(/\u0000$/,'') rescue nil
    x.Padding = f.tell%4 > 0 ? f.read(4 - f.tell%4) : nil
    x.Children = Var.read(f)
  end
end