Class: Exerb::Win32::Struct::ImageResourceDataEntry
- Defined in:
- lib/exerb/win32/struct/image_resource_data_entry.rb
Overview
#
Constant Summary collapse
- FORMAT =
'LLLL'
Instance Attribute Summary collapse
-
#code_page ⇒ Object
Returns the value of attribute code_page.
-
#offset_to_data ⇒ Object
Returns the value of attribute offset_to_data.
-
#reserved ⇒ Object
Returns the value of attribute reserved.
-
#size_of_data ⇒ Object
Returns the value of attribute size_of_data.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ ImageResourceDataEntry
constructor
A new instance of ImageResourceDataEntry.
- #pack ⇒ Object
- #unpack(bin) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ ImageResourceDataEntry
Returns a new instance of ImageResourceDataEntry.
23 24 25 26 27 28 29 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 23 def initialize super() @offset_to_data = 0 @size_of_data = 0 @code_page = 0 @reserved = 0 end |
Instance Attribute Details
#code_page ⇒ Object
Returns the value of attribute code_page.
31 32 33 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 31 def code_page @code_page end |
#offset_to_data ⇒ Object
Returns the value of attribute offset_to_data.
31 32 33 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 31 def offset_to_data @offset_to_data end |
#reserved ⇒ Object
Returns the value of attribute reserved.
31 32 33 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 31 def reserved @reserved end |
#size_of_data ⇒ Object
Returns the value of attribute size_of_data.
31 32 33 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 31 def size_of_data @size_of_data end |
Instance Method Details
#pack ⇒ Object
33 34 35 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 33 def pack return [@offset_to_data, @size_of_data, @code_page, @reserved].pack(FORMAT) end |
#unpack(bin) ⇒ Object
37 38 39 40 |
# File 'lib/exerb/win32/struct/image_resource_data_entry.rb', line 37 def unpack(bin) @offset_to_data, @size_of_data, @code_page, @reserved = bin.unpack(FORMAT) return self end |