BinaryReader()

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)

Arguments

ParameterTypeDescription
inputconst SharedPtr<Stream>&The input stream

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)

Arguments

ParameterTypeDescription
inputconst SharedPtr<Stream>&The input stream
encodingconst SharedPtr<Text::Encoding>&The encoding to use

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)

Arguments

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