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

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

Issue 9195031: Add ByteArray interface and provide internal and external implementations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address remaining review comments Created 8 years, 10 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/lib/byte_array.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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 intptr_t length); 1087 intptr_t length);
1088 1088
1089 /** 1089 /**
1090 * May generate an unhandled exception error. 1090 * May generate an unhandled exception error.
1091 */ 1091 */
1092 DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list, 1092 DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list,
1093 intptr_t offset, 1093 intptr_t offset,
1094 uint8_t* native_array, 1094 uint8_t* native_array,
1095 intptr_t length); 1095 intptr_t length);
1096 1096
1097 // --- Byte Arrays ---
1098
1099 DART_EXPORT Dart_Handle Dart_NewByteArray(intptr_t length);
1100
1101 /**
1102 * Is this object a ByteArray?
1103 */
1104 DART_EXPORT bool Dart_IsByteArray(Dart_Handle object);
1105
1097 // --- Closures --- 1106 // --- Closures ---
1098 1107
1099 /** 1108 /**
1100 * Is this object a Closure? 1109 * Is this object a Closure?
1101 */ 1110 */
1102 DART_EXPORT bool Dart_IsClosure(Dart_Handle object); 1111 DART_EXPORT bool Dart_IsClosure(Dart_Handle object);
1103 1112
1104 /** 1113 /**
1105 * Invokes a Closure with the given arguments. 1114 * Invokes a Closure with the given arguments.
1106 * 1115 *
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1393
1385 // --- Profiling support ---- 1394 // --- Profiling support ----
1386 1395
1387 // External pprof support for gathering and dumping symbolic 1396 // External pprof support for gathering and dumping symbolic
1388 // information that can be used for better profile reports for 1397 // information that can be used for better profile reports for
1389 // dynamically generated code. 1398 // dynamically generated code.
1390 DART_EXPORT void Dart_InitPprofSupport(); 1399 DART_EXPORT void Dart_InitPprofSupport();
1391 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1400 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1392 1401
1393 #endif // INCLUDE_DART_API_H_ 1402 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/byte_array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698