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

Unified Diff: runtime/include/dart_api.h

Issue 9104041: Added API Dart_PostCMessage for posting a Dart_CMessage structure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.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 31acf3ba1f44e1ff5f364f6b3b5788863d6fa830..e9b6548f31bde3bd9d934135c39930be8986b574 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -1441,4 +1441,11 @@ DART_EXPORT Dart_CMessage* Dart_DecodeMessage(uint8_t* message,
// Don't fill in allocated (caller uses zone like allocation)
// Don't Never point into original_message for e.g. byte arrays.
+/**
+ * Encodes a Dart_CMessage structure into a Dart message.
+ */
+DART_EXPORT uint8_t* Dart_EncodeMessage(Dart_CMessage* message,
+ Allocator allocator);
+// TODO(sgjesse): Return the length of the encoded message.
siva 2012/02/01 01:01:33 Instead of an API call to encode a CMessage would
Søren Gjesse 2012/02/02 14:25:59 Done.
+
#endif // INCLUDE_DART_API_H_
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698