Class: Sigma::DataInput
- Inherits:
-
Object
- Object
- Sigma::DataInput
- Extended by:
- FFI::Library
- Defined in:
- lib/sigma/data_input.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/data_input.rb', line 13 def pointer @pointer end |
Class Method Details
.with_box_id(box_id) ⇒ Object
15 16 17 18 19 |
# File 'lib/sigma/data_input.rb', line 15 def self.with_box_id(box_id) pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_data_input_new(box_id.pointer, pointer) init(pointer) end |
.with_raw_pointer(pointer) ⇒ Object
21 22 23 |
# File 'lib/sigma/data_input.rb', line 21 def self.with_raw_pointer(pointer) init(pointer) end |
Instance Method Details
#get_box_id ⇒ Object
25 26 27 28 29 |
# File 'lib/sigma/data_input.rb', line 25 def get_box_id pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_data_input_new(self.pointer, pointer) Sigma::BoxId.with_raw_pointer(pointer) end |