System::IO::BinaryWriter::Write method

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)
ParameterTypeDescription
valueboolThe boolean value specifying the byte value to write to the output stream

See Also

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)
ParameterTypeDescription
valuechar16_tThe value to write

See Also

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)
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

See Also

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)
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

See Also

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)
ParameterTypeDescription
valueconst char_t *The c-string to write

See Also

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)
ParameterTypeDescription
valueconst Decimal&The value to write

See Also

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)
ParameterTypeDescription
valueconst String&The string to write

See Also

BinaryWriter::Write(double) method

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

virtual void System::IO::BinaryWriter::Write(double value)
ParameterTypeDescription
valuedoubleThe value to write

See Also

BinaryWriter::Write(float) method

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

virtual void System::IO::BinaryWriter::Write(float value)
ParameterTypeDescription
valuefloatThe value to write

See Also

BinaryWriter::Write(int) method

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

virtual void System::IO::BinaryWriter::Write(int value)
ParameterTypeDescription
valueintThe value to write

See Also

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)
ParameterTypeDescription
valueint16_tThe value to write

See Also

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)
ParameterTypeDescription
valueint64_tThe value to write

See Also

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)
ParameterTypeDescription
valueuint16_tThe value to write

See Also

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)
ParameterTypeDescription
valueuint32_tThe value to write

See Also

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)
ParameterTypeDescription
valueuint64_tThe value to write

See Also

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)
ParameterTypeDescription
valueuint8_tThe value to write

See Also