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

Unified Diff: runtime/include/dart_api.h

Issue 9348019: Add support for byte arrays to native messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.h » ('j') | runtime/vm/dart_api_message.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 4d8772fb7a5213e1b397758057c1ee8a87e75925..ef76400f9a4fea844c8a336e8c34bca59d9d680d 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -551,6 +551,7 @@ struct Dart_CObject {
kDouble,
kString,
kArray,
+ kByteArray,
kNumberOfTypes
};
Type type;
@@ -563,6 +564,10 @@ struct Dart_CObject {
int length;
Dart_CObject** values;
} as_array;
+ struct {
+ int length;
+ uint8_t* values;
+ } as_byte_array;
} value;
};
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.h » ('j') | runtime/vm/dart_api_message.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698