BinaryWriter()

BinaryWriter::BinaryWriter(const StreamPtr&, const EncodingPtr&, bool) constructor

Constructs an instance of BinaryWriter class that writes data to the specified stream using the specified encoding.

System::IO::BinaryWriter::BinaryWriter(const StreamPtr &stream, const EncodingPtr &encoding=System::Text::Encoding::get_UTF8Unmarked(), bool leaveopen=false)

Arguments

ParameterTypeDescription
streamconst StreamPtr&The output stream
encodingconst EncodingPtr&The encoding to use
leaveopenboolSpecifies whether the stream stream should be left open (true) after the current object has been disposed or not (false)

See Also