Writes a value of type T to the stream. If writing fails for whatever reason, a StreamException is thrown.
The value to write.
A nullable error, which is set if an error occurs.
See Implementation
Writes a value of type T to the stream. If writing fails for whatever reason, a StreamException is thrown.