A method of processing nested message layers which allows for encoding all the
message layers into one formatted message buffer without incurring a copy at each
message layer. A generalized approach for representing the context of each message
layer and linking them to facilitate the encoding and decoding of message layers.