changeset 10824:d163db068a12

reserved_bytes & byte order stuff
author michael
date Sat, 06 Sep 2003 13:21:08 +0000
parents df1433f614f6
children b9bbfd4a0acc
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Sat Sep 06 12:06:59 2003 +0000
+++ b/DOCS/tech/mpcf.txt	Sat Sep 06 13:21:08 2003 +0000
@@ -60,7 +60,7 @@
 	Note: strings MUST be encoded in utf8
 
         
-f(x)	n fixed bits
+f(x)	n fixed bits in big endian order
 u(x)	unsigned number encoded in x bits in MSB first order
 
 
@@ -76,7 +76,11 @@
 reserved_bytes
 	for(i=0; i<forward_ptr - length_of_non_reserved; i++)
 		reserved			u(8)
-  
+	a decoder MUST ignore any reserved bytes
+	a encoder MUST NOT write any reserved bytes, as this would make it
+	inpossible to add new fields at the end of packets in the future in
+	a compatible way
+
 main header:
 	packet header
 	main_startcode				f(64)