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

Side by Side Diff: runtime/include/dart_api.h

Issue 1086713002: Add Dart_NewIntegerFromUint64. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl_test.cc » ('J')
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 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 * \param value The value of the integer. 1392 * \param value The value of the integer.
1393 * 1393 *
1394 * \return The Integer object if no error occurs. Otherwise returns 1394 * \return The Integer object if no error occurs. Otherwise returns
1395 * an error handle. 1395 * an error handle.
1396 */ 1396 */
1397 DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value); 1397 DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value);
1398 1398
1399 /** 1399 /**
1400 * Returns an Integer with the provided value. 1400 * Returns an Integer with the provided value.
1401 * 1401 *
1402 * \param value The value of the integer.
siva 2015/04/14 17:42:45 Unsigned value of the integer
rmacnak 2015/04/14 17:51:45 Done.
1403 *
1404 * \return The Integer object if no error occurs. Otherwise returns
1405 * an error handle.
1406 */
1407 DART_EXPORT Dart_Handle Dart_NewIntegerFromUint64(uint64_t value);
1408
1409 /**
1410 * Returns an Integer with the provided value.
1411 *
1402 * \param value The value of the integer represented as a C string 1412 * \param value The value of the integer represented as a C string
1403 * containing a hexadecimal number. 1413 * containing a hexadecimal number.
1404 * 1414 *
1405 * \return The Integer object if no error occurs. Otherwise returns 1415 * \return The Integer object if no error occurs. Otherwise returns
1406 * an error handle. 1416 * an error handle.
1407 */ 1417 */
1408 DART_EXPORT Dart_Handle Dart_NewIntegerFromHexCString(const char* value); 1418 DART_EXPORT Dart_Handle Dart_NewIntegerFromHexCString(const char* value);
1409 1419
1410 /** 1420 /**
1411 * Gets the value of an Integer. 1421 * Gets the value of an Integer.
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2834 * NOTE: If multiple callbacks with the same name are registered, only the 2844 * NOTE: If multiple callbacks with the same name are registered, only the
2835 * last callback registered will be remembered. 2845 * last callback registered will be remembered.
2836 */ 2846 */
2837 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2847 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2838 const char* name, 2848 const char* name,
2839 Dart_ServiceRequestCallback callback, 2849 Dart_ServiceRequestCallback callback,
2840 void* user_data); 2850 void* user_data);
2841 2851
2842 2852
2843 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2853 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698