Constructors: NewBinaryWriter

NewBinaryWriter

Returns a new BinaryWriter used to write to a Stream object.



 Public Function NewBinaryWriter(
	  ByVal Stream As Stream,
	  Optional ByVal Encoding As Encoding ) As BinaryWriter

Parameters

Stream
[ByVal] Stream. The stream to be written to by the writer.
Encoding
[ByVal] Optional. Encoding. The encoding to be used when converting chars to bytes.

Return Values

BinaryWriter -  The new BinaryWriter object.

Remarks

The Stream object must support writing.

If no Encoding object is supplied, then an encoding of Cor.NewUTF8Encoding(False, True) is used.

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewBinaryReader NewBitArray