FastInfoset.NET Class Reference for .NET
ReadElementContentAsBinHex(Byte[],Int32,Int32) Method






The buffer into which to copy the resulting bytes. This value cannot be a null reference (Nothing in Visual Basic).
The offset into the buffer where to start copying the result.

The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned from this method.

Reads the binary or BinHex encoded element content and returns the decoded bytes.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function ReadElementContentAsBinHex( _
   ByVal buffer() As System.Byte, _
   ByVal index As System.Integer, _
   ByVal count As System.Integer _
) As System.Integer
'Usage
 
Dim instance As XmlFastInfosetReader
Dim buffer() As System.Byte
Dim index As System.Integer
Dim count As System.Integer
Dim value As System.Integer
 
value = instance.ReadElementContentAsBinHex(buffer, index, count)
public override System.int ReadElementContentAsBinHex( 
   System.byte[] buffer,
   System.int index,
   System.int count
)
public function ReadElementContentAsBinHex( 
    buffer: System.Bytearray of;
    index: System.Integer;
    count: System.Integer
): System.Integer; override; 
public override function ReadElementContentAsBinHex( 
   buffer : System.byte[],
   index : System.int,
   count : System.int
) : System.int;
public: System.int ReadElementContentAsBinHex( 
   System.byte[]* buffer,
   System.int index,
   System.int count
) override 
public:
System.int ReadElementContentAsBinHex( 
   System.array<byte>^ buffer,
   System.int index,
   System.int count
) override 

Parameters

buffer
The buffer into which to copy the resulting bytes. This value cannot be a null reference (Nothing in Visual Basic).
index
The offset into the buffer where to start copying the result.
count

The 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.
Remarks

This method reads the start tag, the content of the element, and moves the reader past the end element tag. It expands entities and ignores processing instructions and comments. The element can only contain simple content. That is, it cannot have child elements.

If the content is binary encoded BinHex bytes, the reader returns the bytes read.

If the content is text, the reader performs BinHex decoding and returns the decoded bytes.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XmlFastInfosetReader Class
XmlFastInfosetReader Members
Overload List
Base Implementation in ReadElementContentAsBinHex

Send Feedback