ReadContentAsBase64()

XmlTextReader::ReadContentAsBase64(ArrayPtr<uint8_t>, int32_t, int32_t) method

Reads the content and returns the Base64 decoded binary bytes.

int32_t System::Xml::XmlTextReader::ReadContentAsBase64(ArrayPtr<uint8_t> buffer, int32_t index, int32_t count) override

Arguments

ParameterTypeDescription
bufferArrayPtr<uint8_t>The buffer into which to copy the resulting text. This value cannot be nullptr.
indexint32_tThe offset into the buffer where to start copying the result.
countint32_tThe maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned from this method.

Return Value

The number of bytes written to the buffer.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe buffer value is nullptr.
InvalidOperationExceptionThe call is not supported in the current node.
ArgumentOutOfRangeExceptionThe index into the buffer or index + count is larger than the allocated buffer size.

See Also