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