module Ethon::Curls::Infos

def get_info_double(option, handle)

Returns:
  • (Float) - The info.

Parameters:
  • handle (::FFI::Pointer) -- The easy handle.
  • option (Symbol) -- The option name.

Other tags:
    Example: Return info. -
def get_info_double(option, handle)
  double_ptr = ::FFI::MemoryPointer.new(:double)
  if easy_getinfo(handle, option, :pointer, double_ptr) == :ok
    double_ptr.read_double
  end
end