Chromium Code Reviews| Index: runtime/include/dart_api.h |
| =================================================================== |
| --- runtime/include/dart_api.h (revision 32872) |
| +++ runtime/include/dart_api.h (working copy) |
| @@ -2091,12 +2091,22 @@ |
| DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args); |
| /** |
| - * Gets the native instance field of the native argument at some index. |
| + * Gets all the native fields of the native argument at some index. |
| + * \param args Native arguments structure. |
| + * \param arg_index Index of the desired argument in the structure above. |
| + * \param num_fields size of the intptr_t array 'field_values' passed in. |
| + * \param field_values intptr_t array in which native field values are returned. |
| + * \return Success if the native fields where copied in successfully. Otherwise |
| + * returnds an error handle. On success the native field values are copied |
|
vsm
2014/02/21 16:19:04
returnds -> returns
siva
2014/02/21 19:01:09
Done.
|
| + * into the 'field_values' array, if the argument at 'arg_index' is a |
| + * null object then 0 is copied as the native field values into the |
| + * 'field_values' array. |
| */ |
| -DART_EXPORT Dart_Handle Dart_GetNativeFieldOfArgument(Dart_NativeArguments args, |
| - int arg_index, |
| - int fld_index, |
| - intptr_t* value); |
| +DART_EXPORT Dart_Handle Dart_GetNativeFieldsOfArgument( |
| + Dart_NativeArguments args, |
| + int arg_index, |
| + int num_fields, |
| + intptr_t* field_values); |
| /** |
| * Gets the native field of the receiver. |