| 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 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 | 1783 |
| 1784 /** | 1784 /** |
| 1785 * Returns a TypedData object which references an external data array. | 1785 * Returns a TypedData object which references an external data array. |
| 1786 * | 1786 * |
| 1787 * \param type The type of the data array. | 1787 * \param type The type of the data array. |
| 1788 * \param value A data array. This array must not move. | 1788 * \param value A data array. This array must not move. |
| 1789 * \param length The length of the data array (length in type units). | 1789 * \param length The length of the data array (length in type units). |
| 1790 * \param peer An external pointer to associate with this array. | 1790 * \param peer An external pointer to associate with this array. |
| 1791 * | 1791 * |
| 1792 * \return The TypedData object if no error occurs. Otherwise returns | 1792 * \return The TypedData object if no error occurs. Otherwise returns |
| 1793 * an error handle. The TypedData object is returned in a | 1793 * an error handle. |
| 1794 * WeakPersistentHandle which needs to be deleted in the specified callback | |
| 1795 * using Dart_DeletePersistentHandle. | |
| 1796 */ | 1794 */ |
| 1797 DART_EXPORT Dart_Handle Dart_NewExternalTypedData(Dart_TypedData_Type type, | 1795 DART_EXPORT Dart_Handle Dart_NewExternalTypedData(Dart_TypedData_Type type, |
| 1798 void* data, | 1796 void* data, |
| 1799 intptr_t length); | 1797 intptr_t length); |
| 1800 | 1798 |
| 1801 /** | 1799 /** |
| 1802 * Acquires access to the internal data address of a TypedData object. | 1800 * Acquires access to the internal data address of a TypedData object. |
| 1803 * | 1801 * |
| 1804 * \param object The typed data object whose internal data address is to | 1802 * \param object The typed data object whose internal data address is to |
| 1805 * be accessed. | 1803 * be accessed. |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2545 * NOTE: If multiple callbacks with the same name are registered, only the | 2543 * NOTE: If multiple callbacks with the same name are registered, only the |
| 2546 * last callback registered will be remembered. | 2544 * last callback registered will be remembered. |
| 2547 */ | 2545 */ |
| 2548 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2546 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
| 2549 const char* name, | 2547 const char* name, |
| 2550 Dart_ServiceRequestCallback callback, | 2548 Dart_ServiceRequestCallback callback, |
| 2551 void* user_data); | 2549 void* user_data); |
| 2552 | 2550 |
| 2553 | 2551 |
| 2554 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2552 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |