[][src]Function dart_sys::Dart_GetNativeArguments

pub unsafe extern "C" fn Dart_GetNativeArguments(
    args: Dart_NativeArguments,
    num_arguments: c_int,
    arg_descriptors: *const Dart_NativeArgument_Descriptor,
    arg_values: *mut Dart_NativeArgument_Value
) -> Dart_Handle

Gets the native arguments based on the types passed in and populates the passed arguments buffer with appropriate native values.

\param args the Native arguments block passed into the native call. \param num_arguments length of argument descriptor array and argument values array passed in. \param arg_descriptors an array that describes the arguments that need to be retrieved. For each argument to be retrieved the descriptor contains the argument number (0, 1 etc.) and the argument type described using Dart_NativeArgument_Type, e.g: DART_NATIVE_ARG_DESCRIPTOR(Dart_NativeArgument_kBool, 1) indicates that the first argument is to be retrieved and it should be a boolean. \param arg_values array into which the native arguments need to be extracted into, the array is allocated by the caller (it could be stack allocated to avoid the malloc/free performance overhead).

\return Success if all the arguments could be extracted correctly, returns an error handle if there were any errors while extracting the arguments (mismatched number of arguments, incorrect types, etc.).