Class: Sigma::PreHeader
- Inherits:
-
Object
- Object
- Sigma::PreHeader
- Extended by:
- FFI::Library
- Defined in:
- lib/sigma/pre_header.rb
Instance Attribute Summary collapse
-
#pointer ⇒ Object
Returns the value of attribute pointer.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#pointer ⇒ Object
Returns the value of attribute pointer.
13 14 15 |
# File 'lib/sigma/pre_header.rb', line 13 def pointer @pointer end |
Class Method Details
.with_block_header(block_header) ⇒ Object
15 16 17 18 19 |
# File 'lib/sigma/pre_header.rb', line 15 def self.with_block_header(block_header) pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_preheader_from_block_header(block_header.pointer, pointer) init(pointer) end |
Instance Method Details
#==(ph_two) ⇒ Object
21 22 23 |
# File 'lib/sigma/pre_header.rb', line 21 def ==(ph_two) ergo_lib_pre_header_eq(self.pointer, ph_two.pointer) end |