The new [Encode] and [Decode] functions are byte slice equivalents to [Read] and [Write]. [Append] allows marshaling multiple data into the same byte slice.