Constructs a packer with stream.
the stream to write.
serialize class / struct with field name
See Implementation
Constructs a packer with stream.