System::IO::BinaryReader::BinaryReader constructor

BinaryReader::BinaryReader(const SharedPtr<Stream>&) constructor

Constructs an instance of BinaryReader class that reads data from the specified stream using UTF-8 encoding.

System::IO::BinaryReader::BinaryReader(const SharedPtr<Stream> &input)
ParameterTypeDescription
inputconst SharedPtr<Stream>&The input stream

See Also

BinaryReader::BinaryReader(const SharedPtr<Stream>&, const SharedPtr<Text::Encoding>&) constructor

Constructs an instance of BinaryReader class that reads data from the specified stream using the specified encoding.

System::IO::BinaryReader::BinaryReader(const SharedPtr<Stream> &input, const SharedPtr<Text::Encoding> &encoding)
ParameterTypeDescription
inputconst SharedPtr<Stream>&The input stream
encodingconst SharedPtr<Text::Encoding>&The encoding to use

See Also

BinaryReader::BinaryReader(const SharedPtr<Stream>&, const SharedPtr<Text::Encoding>&, bool) constructor

Constructs an instance of BinaryReader class that reads data from the specified stream using the specified encoding.

System::IO::BinaryReader::BinaryReader(const SharedPtr<Stream> &input, const SharedPtr<Text::Encoding> &encoding, bool leaveOpen)
ParameterTypeDescription
inputconst SharedPtr<Stream>&The input stream
encodingconst SharedPtr<Text::Encoding>&The encoding to use
leaveOpenboolSpecifies whether the stream input should be left open (true) after the current object has been disposed or not (false)

See Also