public BinaryWriter ( |
||
output | ||
encoding | ||
leaveOpen | bool | |
리턴 | System.Text |
public BinaryWriter(Stream output, Encoding encoding, bool leaveOpen)
{
if (output == null)
{
throw new ArgumentNullException(nameof(output));
}
if (encoding == null)
{
throw new ArgumentNullException(nameof(encoding));
}
if (!output.CanWrite)
{
throw new ArgumentException(SR.Argument_StreamNotWritable);
}
OutStream = output;
_buffer = new byte[16];
_encoding = encoding;
_encoder = _encoding.GetEncoder();
_leaveOpen = leaveOpen;
}
BinaryWriter::BinaryWriter ( ) : System.Text | |
BinaryWriter::BinaryWriter ( |
|
BinaryWriter::BinaryWriter ( |