Writes a scalar variable to the stream preserving the stream endianness
The stream
The variable to write
See Implementation
Writes a scalar variable to the stream preserving the stream endianness