WriteBinHex()

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

Encodes the specified binary bytes as binhex and writes out the resulting text.

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

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.
ArgumentExceptionThe buffer length minus index is less than count.
ArgumentOutOfRangeExceptionindex or count is less than zero.
InvalidOperationExceptionThe XmlTextWriter::get_WriteState value is WriteState::Closed.

See Also