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

Side by Side 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: Address review comments 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 * \param list A List. 1834 * \param list A List.
1835 * \param index A valid index into the List. 1835 * \param index A valid index into the List.
1836 * 1836 *
1837 * \return The Object in the List at the specified index if no error 1837 * \return The Object in the List at the specified index if no error
1838 * occurs. Otherwise returns an error handle. 1838 * occurs. Otherwise returns an error handle.
1839 */ 1839 */
1840 DART_EXPORT Dart_Handle Dart_ListGetAt(Dart_Handle list, 1840 DART_EXPORT Dart_Handle Dart_ListGetAt(Dart_Handle list,
1841 intptr_t index); 1841 intptr_t index);
1842 1842
1843 /** 1843 /**
1844 * Gets a range of Objects from a List.
1845 *
1846 * If any of the requested index values are out of bounds, an error occurs.
1847 *
1848 * May generate an unhandled exception error.
1849 *
1850 * \param list A List.
1851 * \param offset The offset of the first item to get.
1852 * \param length The number of items to get.
1853 * \param result A pointer to fill with the objects.
1854 *
1855 * \return Success if no error occurs during the operation.
1856 */
1857 DART_EXPORT Dart_Handle Dart_ListGetRange(Dart_Handle list,
1858 intptr_t offset,
1859 intptr_t length,
1860 Dart_Handle* result);
1861
1862 /**
1844 * Sets the Object at some index of a List. 1863 * Sets the Object at some index of a List.
1845 * 1864 *
1846 * If the index is out of bounds, an error occurs. 1865 * If the index is out of bounds, an error occurs.
1847 * 1866 *
1848 * May generate an unhandled exception error. 1867 * May generate an unhandled exception error.
1849 * 1868 *
1850 * \param array A List. 1869 * \param array A List.
1851 * \param index A valid index into the List. 1870 * \param index A valid index into the List.
1852 * \param value The Object to put in the List. 1871 * \param value The Object to put in the List.
1853 * 1872 *
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 2852
2834 /** 2853 /**
2835 * Returns the port that script load requests should be sent on. 2854 * Returns the port that script load requests should be sent on.
2836 * 2855 *
2837 * \return Returns the port for load requests or ILLEGAL_PORT if the service 2856 * \return Returns the port for load requests or ILLEGAL_PORT if the service
2838 * isolate failed to startup or does not support load requests. 2857 * isolate failed to startup or does not support load requests.
2839 */ 2858 */
2840 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort(); 2859 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort();
2841 2860
2842 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2861 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698