To write/decode the data into the stream.
Possible Error codes in the LastError property:
MacOS or Windows file system errors.
Note:
The Decode function does the same as the Write method, the Decode function is the preferred way for easier readability of the code. The Write function is provided to ensure Interface compatibility with IStreamWriter.