Class: Exerb::Resource::VersionInfo::BlockType1String

Inherits:
BlockType1 show all
Defined in:
lib/exerb/resource/version_info.rb

Overview

BlockType1

Instance Attribute Summary

Attributes inherited from BlockBase

#children, #key, #type, #unicode, #value

Instance Method Summary collapse

Methods inherited from BlockBase

#<<, #pack

Constructor Details

#initialize(key, value) ⇒ BlockType1String


146
147
148
# File 'lib/exerb/resource/version_info.rb', line 146

def initialize(key, value)
  super(key, value.to_s.unpack("U*").pack("v*") + "\0\0", true) # UTF-8 to UTF-16LE
end