From 380156b567d4fa01d600e834010435161ce6290d Mon Sep 17 00:00:00 2001 From: ejakowatz Date: Tue, 2 Nov 2004 20:49:35 +0000 Subject: [PATCH] Clarified the format, in particular with regard to how 'mini' vs. 'maxi' data effects field sizes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9742 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- docs/develop/app/bmessage.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/develop/app/bmessage.txt b/docs/develop/app/bmessage.txt index 899fa6689a..a1278aa85c 100644 --- a/docs/develop/app/bmessage.txt +++ b/docs/develop/app/bmessage.txt @@ -10,16 +10,20 @@ Data field: Data Bytes Meaning 1 flags 4 type + // Mini data (all data less than 256 bytes total) 1 item count (*if* there is more than one) 1 data length + // Maxi data (all data more than 255 bytes total) + 4 item count (*if* there is more than one) + 4 data length 1 name length X name // Single item 4 item size (*if* this is a variable sized item) - Y data + Y item data - NULL padded to 8-byte boundary // Multiple items - 4 item size (for variable sized items) - Y item data - padded to 8-byte boundary + 4 item size (*if* this is a variable sized item) + Y item data - NULL padded to 8-byte boundary //------------------------------------------------------------------------------ // An example