packet: basic encoding and decoding serialization