ReadBase64()

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

Decodes Base64 and returns the decoded binary bytes.

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

Arguments

ParameterTypeDescription
arrayconst ArrayPtr<uint8_t>&The array of characters that serves as the buffer to which the text contents 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 the buffer.

Exceptions

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

See Also