Class: FDB::FutureStringArray

Inherits:
LazyFuture show all
Defined in:
lib/fdbimpl.rb

Instance Method Summary collapse

Methods inherited from LazyFuture

#initialize, #method_missing, #respond_to?, #value

Methods inherited from Future

#block_until_ready, #callback_wrapper, #cancel, finalize, #initialize, #on_ready, #ready?, wait_for_any

Constructor Details

This class inherits a constructor from FDB::LazyFuture

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FDB::LazyFuture

Instance Method Details

#getterObject



476
477
478
479
480
481
482
# File 'lib/fdbimpl.rb', line 476

def getter
  strings = FFI::MemoryPointer.new :pointer
  count = FFI::MemoryPointer.new :int
  FDBC.check_error FDBC.fdb_future_get_string_array(@fpointer, strings, count)

  @value = strings.read_pointer.get_array_of_string(0, count.read_int).compact
end