Writes value with size in bytes with specified byteOrder into the stream. The bytes should be in 1..8 range.
Writes Int with specified byteOrder into the stream.