WriteBinHex()

XmlWriter::WriteBinHex(ArrayPtr<uint8_t>, int32_t, int32_t) method

When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text.

virtual void System::Xml::XmlWriter::WriteBinHex(ArrayPtr<uint8_t> buffer, int32_t index, int32_t count)

Arguments

ParameterTypeDescription
bufferArrayPtr<uint8_t>Byte array to encode.
indexint32_tThe position in the buffer indicating the start of the bytes to write.
countint32_tThe number of bytes to write.

Exceptions

ExceptionDescription
ArgumentNullExceptionbuffer is nullptr.
InvalidOperationExceptionThe writer is closed or in error state.
ArgumentOutOfRangeExceptionindex or count is less than zero. or The buffer length minus index is less than count.

See Also