Permalink
Browse files

Adding parcel types for List and Hash

  • Loading branch information...
1 parent b519752 commit 6507ead02d747a6ff5516e3a2197aad3496f884a kedji committed Dec 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README
View
@@ -178,15 +178,15 @@ Example: An attribute with an ID of 20 contains time_t data and may occur 0 or
TIP can also serialize generic data structures. These parcels have no particular meaning in and of themselves, and exist only as containers.
-6.1 - List
+6.1 - List (0x1A15)
This parcel merely contains a list of attributes, similar to an array. The "list length" field describes the number of elements, not the number of bytes.
+------ 4 ------+ +---- 1 ----+------ 4 ------+---- "length" ----+
| list length | + | attr type | attr length | attr content | ...
+---------------+ +-----------+---------------+------------------+
-6.2 - Hash Map
+6.2 - Hash Map (0x1AA5)
This parcel contains a hash map that associates attribute keys to attribute values. The "hash length" describes the number of contained key/value pairs.

0 comments on commit 6507ead

Please sign in to comment.