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

Unified 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: fewer templates Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/byte_array.cc » ('j') | runtime/lib/byte_array.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index 67c3af41e4c370476a9b3e1d84141e58f3421dc9..18544d013768c81275c73dd6153700a743237aa5 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -1094,6 +1094,15 @@ DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list,
uint8_t* native_array,
intptr_t length);
+// --- Byte Arrays ---
+
+DART_EXPORT Dart_Handle Dart_NewByteArray(intptr_t length);
+
+/**
+ * Is this object a ByteArray?
+ */
+DART_EXPORT bool Dart_IsByteArray(Dart_Handle object);
+
// --- Closures ---
/**
« no previous file with comments | « no previous file | runtime/lib/byte_array.cc » ('j') | runtime/lib/byte_array.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698