FastInfoset.NET Class Reference for .NET
ReadElementContentAsBase64(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 Base64 encoded element content and returns the decoded bytes.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function ReadElementContentAsBase64( _
   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.ReadElementContentAsBase64(buffer, index, count)
public override System.int ReadElementContentAsBase64( 
   System.byte[] buffer,
   System.int index,
   System.int count
)
public function ReadElementContentAsBase64( 
    buffer: System.Bytearray of;
    index: System.Integer;
    count: System.Integer
): System.Integer; override; 
public override function ReadElementContentAsBase64( 
   buffer : System.byte[],
   index : System.int,
   count : System.int
) : System.int;
public: System.int ReadElementContentAsBase64( 
   System.byte[]* buffer,
   System.int index,
   System.int count
) override 
public:
System.int ReadElementContentAsBase64( 
   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 Base64 bytes, the reader returns the bytes read.

If the content is text, the reader performs Base64 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 ReadElementContentAsBase64

Send Feedback