OLD | NEW |
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 Loading... |
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 Loading... |
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 */ |
OLD | NEW |