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

Unified Diff: mojo/public/libs/message/README

Issue 23629032: mojo: MessageBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New and improved directory structure and file names. Created 7 years, 3 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
Index: mojo/public/libs/message/README
diff --git a/mojo/public/libs/message/README b/mojo/public/libs/message/README
new file mode 100644
index 0000000000000000000000000000000000000000..b25b2894a4eac844a6a3ada1a8aa6ba3f9e65a8b
--- /dev/null
+++ b/mojo/public/libs/message/README
@@ -0,0 +1,40 @@
+MESSAGE FORMAT
+==============
+
+A Mojo IPC message resembles a property bag, with ordinals as property names.
+
+Message:
+ [ MessageName | MessageSize | Field_1 | Field_2 | ... | Field_N ]
+
+MessageName:
+ [ U32 ]
+
+MessageSize:
+ [ U32 ]
+
+Field:
+ [ FieldHeader | FieldValue ]
+
+FieldHeader:
+ [ FieldName | FieldType ]
+
+FieldName:
+ [ U16 ]
+
+FieldType:
+ [ U14 | FieldClass ]
+
+FieldClass:
+ [ U2 ]
+
+ 01 - FieldValue is a 32-bit value (U32)
+ 10 - FieldValue is a 64-bit value (U64)
+ 11 - FieldValue is a variable-length array
+
+FieldValue:
+ [ U32 ]
+ [ U64 ]
+ [ FieldSize | FieldBytes ]
+
+FieldSize:
+ [ U32 ]

Powered by Google App Engine
This is Rietveld 408576698