Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.ReadBinHex Method

Reads and decodes the BinHex encoded contents of an element and stores the result in a byte buffer.

public int ReadBinHex (byte[] buffer, int offset, int length)

Parameters

buffer
Documentation for this section has not yet been entered.
offset
A int specifying the zero-based index into array where the method should begin to write.
length
Documentation for this section has not yet been entered.
offset
Documentation for this section has not yet been entered.

Returns

A int containing the number of bytes written to array, or zero if the current instance is not positioned on an element.

Exceptions

TypeReason
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeException

offset < 0, or len < 0.

-or-

len > array.Length - offset.

System.Xml.XmlExceptionThe BinHex sequence is not valid.

Remarks

Note:

This method can be called successively to read large streams of embedded text.

For information on BinHex encoding, see RFC 1741 (http://www.ietf.org/rfc/rfc1741).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0