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..0b73e7debe08345e0d319274e6b1e1237bd71038 |
--- /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: |
+ [ MessageSize | MessageName | Field_1 | Field_2 | ... | Field_N ] |
+ |
+MessageSize: |
+ [ U32 ] |
+ |
+MessageName: |
+ [ 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 ] |