Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetReader.ReadElementContentAsBase64(byte[],int,int) Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadElementContentAsBase64 Method : ReadElementContentAsBase64(Byte[],Int32,Int32) Method



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.
Reads the binary or Base64 encoded element content and returns the decoded bytes.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public NotOverridable Function ReadElementContentAsBase64( _
   ByVal buffer() As Byte, _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim buffer() As Byte
Dim index As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.ReadElementContentAsBase64(buffer, index, count)
C# 
public override int ReadElementContentAsBase64( 
   byte[] buffer,
   int index,
   int count
)
C++/CLI 
public:
int ReadElementContentAsBase64( 
   array<byte>^ buffer,
   int index,
   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.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

XmlFastInfosetReader Class
XmlFastInfosetReader Members
Overload List
Base Implementation in System.Xml.XmlReader