Gets the length of the writer data.
The length of the writer data
Gets the string sanitization mode for the writer
True if string sanitization is enabled
Sets the string sanitization mode for the writer.
With string sanitization enabled, the writer will switch `0xFF` bytes in strings (ΓΏ) to `0x79` (y).
the new string sanitization mode
Adds an array of raw bytes to the writer data.
the array of bytes to add
Adds an encoded 1-byte integer to the writer data.
the number to encode and add
Error if the value is not below CHAR_MAX.
Adds an encoded string to the writer data.
the string to encoded and added
Adds a fixed-length encoded string to the writer data.
the string to be encoded and added
the expected length of the string
true if the string should be padded to the length with trailing 0xFF
bytes
Adds a fixed-length string to the writer data.
the string to be added
the expected length of the string
true if the string should be padded to the length with trailing 0xFF
bytes.
Adds an encoded 4-byte integer to the writer data.
the number to encode and add
Error if the value is not below INT_MAX.
Adds an encoded 2-byte integer to the writer data.
the number to encode and add
Error if the value is not below SHORT_MAX.
Adds a string to the writer data.
the string to be added
Adds an encoded 3-byte integer to the writer data.
the number to encode and add
Error if the value is not below THREE_MAX.
Gets the writer data as a byte array.
A copy of the writer data as a byte array
A class for writing EO data to a sequence of bytes.