Class: Sigma::ContextExtension
- Inherits:
-
Object
- Object
- Sigma::ContextExtension
- Extended by:
- FFI::Library
- Defined in:
- lib/sigma/context_extension.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.
14 15 16 |
# File 'lib/sigma/context_extension.rb', line 14 def pointer @pointer end |
Class Method Details
.create ⇒ Object
16 17 18 19 20 |
# File 'lib/sigma/context_extension.rb', line 16 def self.create pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_context_extension_empty(pointer) init(pointer) end |
.with_raw_pointer(pointer) ⇒ Object
22 23 24 |
# File 'lib/sigma/context_extension.rb', line 22 def self.with_raw_pointer(pointer) init(pointer) end |
Instance Method Details
#get_keys ⇒ Object
26 27 28 29 30 31 |
# File 'lib/sigma/context_extension.rb', line 26 def get_keys ce_len = ergo_lib_context_extension_len(self.pointer) b_ptr = FFI::MemoryPointer.new(:uint8, ce_len) ergo_lib_context_extension_keys(self.pointer, b_ptr) b_ptr.get_array_of_uint8(0, ce_len) end |