Class: Hakuban::FFI::FFIResultWithPointer

Inherits:
FFIResult
  • Object
show all
Defined in:
lib/hakuban/ffi.rb

Instance Method Summary collapse

Instance Method Details

#unwrapObject



56
57
58
59
60
# File 'lib/hakuban/ffi.rb', line 56

def unwrap
	return nil  if self[:status].to_sym == :NotAvailable
	raise self[:status].to_exception  if self[:status].to_sym != :Ok
	self[:pointer]
end