Write()

BinaryWriter::Write(uint8_t) method

Writes the specified unsigned 8-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(uint8_t value)

Arguments

ParameterTypeDescription
valueuint8_tThe value to write

BinaryWriter::Write(const ArrayPtr<uint8_t>&, int, int) method

Writes the specified subrange of bytes from the specified byte array to the output stream.

virtual void System::IO::BinaryWriter::Write(const ArrayPtr<uint8_t> &buffer, int index=0, int count=-1)

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<uint8_t>&The array containing the bytes to write
indexintA 0-based index of the elemnet in buffer at which the subrange to write begins
countintThe number of elements in the subrange to write; -1 specifies that the subrange ends where buffer array ends

BinaryWriter::Write(const ArrayPtr<char_t>&, int, int) method

Writes the specified subrange of UTF-16 characters from the specified character array to the output stream.

virtual void System::IO::BinaryWriter::Write(const ArrayPtr<char_t> &buffer, int index=0, int count=-1)

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<char_t>&The array containing the characters to write
indexintA 0-based index of the elemnet in buffer at which the subrange to write begins
countintThe number of characters in the subrange to write; -1 specifies that the subrange ends where buffer array ends

BinaryWriter::Write(bool) method

Writes single byte with a value of 0 if value is ’true’ and 1 if value is ‘false’ to the output stream.

virtual void System::IO::BinaryWriter::Write(bool value)

Arguments

ParameterTypeDescription
valueboolThe boolean value specifying the byte value to write to the output stream

BinaryWriter::Write(char16_t) method

Writes the specified 16-bit wide character value to the output stream.

virtual void System::IO::BinaryWriter::Write(char16_t value)

Arguments

ParameterTypeDescription
valuechar16_tThe value to write

BinaryWriter::Write(int16_t) method

Writes the specified 16-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(int16_t value)

Arguments

ParameterTypeDescription
valueint16_tThe value to write

BinaryWriter::Write(int) method

Writes the specified 32-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(int value)

Arguments

ParameterTypeDescription
valueintThe value to write

BinaryWriter::Write(int64_t) method

Writes the specified 64-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(int64_t value)

Arguments

ParameterTypeDescription
valueint64_tThe value to write

BinaryWriter::Write(uint16_t) method

Writes the specified unsigned 16-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(uint16_t value)

Arguments

ParameterTypeDescription
valueuint16_tThe value to write

BinaryWriter::Write(uint32_t) method

Writes the specified unsigned 32-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(uint32_t value)

Arguments

ParameterTypeDescription
valueuint32_tThe value to write

BinaryWriter::Write(uint64_t) method

Writes the specified unsigned 64-bit integer value to the output stream.

virtual void System::IO::BinaryWriter::Write(uint64_t value)

Arguments

ParameterTypeDescription
valueuint64_tThe value to write

BinaryWriter::Write(float) method

Writes the specified single-precision floating point value to the output stream.

virtual void System::IO::BinaryWriter::Write(float value)

Arguments

ParameterTypeDescription
valuefloatThe value to write

BinaryWriter::Write(double) method

Writes the specified double-precision floating point value to the output stream.

virtual void System::IO::BinaryWriter::Write(double value)

Arguments

ParameterTypeDescription
valuedoubleThe value to write

BinaryWriter::Write(const Decimal&) method

Writes the byte representation of the specified Decimal value to the output stream.

virtual void System::IO::BinaryWriter::Write(const Decimal &value)

Arguments

ParameterTypeDescription
valueconst Decimal&The value to write

BinaryWriter::Write(const String&) method

Writes a length-prefixed string in the current encoding to the output stream.

virtual void System::IO::BinaryWriter::Write(const String &value)

Arguments

ParameterTypeDescription
valueconst String&The string to write

BinaryWriter::Write(const char_t *) method

Writes a length-prefixed string in the current encoding to the output stream.

virtual void System::IO::BinaryWriter::Write(const char_t *value)

Arguments

ParameterTypeDescription
valueconst char_t *The c-string to write

See Also