System::IO::BinaryWriter class
Contents
[
Hide
]BinaryWriter class
Represents a writer that writes values of primitive types to a byte stream. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class BinaryWriter : public System::IDisposable
Methods
Method | Description |
---|---|
BinaryWriter(const StreamPtr&, const EncodingPtr&, bool) | Constructs an instance of BinaryWriter class that writes data to the specified stream using the specified encoding. |
Close() | Closes the current BinaryWriter object and the underlying output stream. |
Dispose() override | Releases all resources used by the current object and closes the undelying stream. |
Flush() | Flushes the output stream. |
get_BaseStream() | Returns the output stream. |
Seek(int, System::IO::SeekOrigin) | Sets the position of the stream represented by the current object. |
virtual Write(uint8_t) | Writes the specified unsigned 8-bit integer value to the output stream. |
virtual Write(const ArrayPtr<uint8_t>&, int, int) | Writes the specified subrange of bytes from the specified byte array to the output stream. |
virtual Write(const ArrayPtr<char_t>&, int, int) | Writes the specified subrange of UTF-16 characters from the specified character array to the output stream. |
virtual Write(bool) | Writes single byte with a value of 0 if value is ’true’ and 1 if value is ‘false’ to the output stream. |
virtual Write(char16_t) | Writes the specified 16-bit wide character value to the output stream. |
virtual Write(int16_t) | Writes the specified 16-bit integer value to the output stream. |
virtual Write(int) | Writes the specified 32-bit integer value to the output stream. |
virtual Write(int64_t) | Writes the specified 64-bit integer value to the output stream. |
virtual Write(uint16_t) | Writes the specified unsigned 16-bit integer value to the output stream. |
virtual Write(uint32_t) | Writes the specified unsigned 32-bit integer value to the output stream. |
virtual Write(uint64_t) | Writes the specified unsigned 64-bit integer value to the output stream. |
virtual Write(float) | Writes the specified single-precision floating point value to the output stream. |
virtual Write(double) | Writes the specified double-precision floating point value to the output stream. |
virtual Write(const Decimal&) | Writes the byte representation of the specified Decimal value to the output stream. |
virtual Write(const String&) | Writes a length-prefixed string in the current encoding to the output stream. |
virtual Write(const char_t *) | Writes a length-prefixed string in the current encoding to the output stream. |
~BinaryWriter() | Destructor. |
See Also
- Class IDisposable
- Namespace System::IO
- Library Aspose.TeX for C++