Constructors: NewBinaryReader

NewBinaryReader

Returns a new BinaryReader that can read from the specified stream usind the specified Encoding.



 Public Function NewBinaryReader(
	  ByVal Stream As Stream,
	  Optional ByVal Encoding As Encoding ) As BinaryReader

Parameters

Stream
[ByVal] Stream. The stream to read the data from.
Encoding
[ByVal] Optional. Encoding. The encoding system to be used to decode the bytes from the stream.

Return Values

BinaryReader -  The new BinaryReader with the specified stream and encoding.

Remarks

If no Encoding is specified, then the reader uses an Encoding of New UTF8Encoding.

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewBigInteger NewBinaryWriter