Skip to content

Commit

Permalink
Adding parcel types for List and Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
kedji committed Dec 2, 2011
1 parent b519752 commit 6507ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -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. 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. 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" ----+ +------ 4 ------+ +---- 1 ----+------ 4 ------+---- "length" ----+
| list length | + | attr type | attr length | attr content | ... | 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. This parcel contains a hash map that associates attribute keys to attribute values. The "hash length" describes the number of contained key/value pairs.


Expand Down

0 comments on commit 6507ead

Please sign in to comment.