ReadBinHex()

XmlTextReader::ReadBinHex(const ArrayPtr<uint8_t>&, int32_t, int32_t) method

Decodes BinHex and returns the decoded binary bytes.

int32_t System::Xml::XmlTextReader::ReadBinHex(const ArrayPtr<uint8_t> &array, int32_t offset, int32_t len)

Arguments

ParameterTypeDescription
arrayconst ArrayPtr<uint8_t>&The byte array that serves as the buffer to which the decoded binary bytes are written.
offsetint32_tThe zero-based index into the array specifying where the method can begin to write to the buffer.
lenint32_tThe number of bytes to write into the buffer.

Return Value

The number of bytes written to your buffer.

Exceptions

ExceptionDescription
XmlExceptionThe BinHex sequence is not valid.
ArgumentNullExceptionThe value of array is nullptr.
ArgumentOutOfRangeExceptionoffset < 0, or len < 0, or len > array.get_Length - offset.

See Also