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

Unified Diff: runtime/vm/dart_api_message.h

Issue 11410032: Add support for non ASCII strings when communicating with native ports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase + update test expectations Created 8 years, 1 month 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
Index: runtime/vm/dart_api_message.h
diff --git a/runtime/vm/dart_api_message.h b/runtime/vm/dart_api_message.h
index 57341da9aeb84506a5837cb70cc5b29fe3ef5ebf..c37d8fbc2500ffda31943c7b54e8557b24b192d2 100644
--- a/runtime/vm/dart_api_message.h
+++ b/runtime/vm/dart_api_message.h
@@ -131,7 +131,7 @@ class ApiMessageWriter : public BaseWriter {
void WriteMessage(intptr_t field_count, intptr_t *data);
// Writes a message with a single object.
- void WriteCMessage(Dart_CObject* object);
+ bool WriteCMessage(Dart_CObject* object);
private:
static const intptr_t kDartCObjectTypeBits = 4;
@@ -152,10 +152,10 @@ class ApiMessageWriter : public BaseWriter {
void WriteInt32(Dart_CObject* object);
void WriteInt64(Dart_CObject* object);
void WriteInlinedHeader(Dart_CObject* object);
- void WriteCObject(Dart_CObject* object);
- void WriteCObjectRef(Dart_CObject* object);
- void WriteForwardedCObject(Dart_CObject* object);
- void WriteCObjectInlined(Dart_CObject* object, Dart_CObject::Type type);
+ bool WriteCObject(Dart_CObject* object);
+ bool WriteCObjectRef(Dart_CObject* object);
+ bool WriteForwardedCObject(Dart_CObject* object);
+ bool WriteCObjectInlined(Dart_CObject* object, Dart_CObject::Type type);
intptr_t object_id_;
Dart_CObject** forward_list_;

Powered by Google App Engine
This is Rietveld 408576698