[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Peeking and unreading
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 17 Jul 2016 22:05:55 +0200
2016-07-17 19:49 GMT+02:00 Jorge <xxopxe@gmail.com>:
> Do you think that property is by chance, or it's some pattern? Ideas for
> easy framing of messages in streams are always welcome...
It's on purpose. It represents the depth-first traversal of a tree. The
number is the level of the node (i.e. distance from the root). Then
follows a tag to say what kind of node it is, and then the real data.
Some nodes have an identifier so that you can reach it by direct
access instead of traversal.