Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Unified Diff: runtime/include/dart_api.h

Issue 1284633004: Add Dart_ListGetRange (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk.git@master
Patch Set: improve typos Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index d3f54b1b48ede03ca59aad692b1cbabd5994f12d..7c1bfd8ea8aba9bb032cbf010616475506fcbfb2 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -1841,6 +1841,25 @@ DART_EXPORT Dart_Handle Dart_ListGetAt(Dart_Handle list,
intptr_t index);
/**
+* Gets a range of Objects from a List.
+*
+* If the any of the requested index values are out of bounds, an error occurs.
siva 2015/08/12 17:07:25 If any of the requested ...
+*
+* May generate an unhandled exception error.
+*
+* \param list A List.
+* \param offset The offset of the first item to get.
+* \param length The number of items to get.
+* \param result A pointer to fill with the objects.
+*
+* \return A valid handle if no error occurs during the operation.
siva 2015/08/12 17:07:25 return Success if no error ....
+*/
+DART_EXPORT Dart_Handle Dart_ListGetRange(Dart_Handle list,
+ intptr_t offset,
+ intptr_t length,
+ Dart_Handle* result);
+
+/**
* Sets the Object at some index of a List.
*
* If the index is out of bounds, an error occurs.
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698