Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Xml.XmlStreamNodeWriter Class Referenceabstract

Public Member Functions

void WriteBytes (byte[] byteBuffer, int byteOffset, int byteCount)
 
override void Flush ()
 
override async Task FlushAsync ()
 
override void Close ()
 
void WriteDeclaration ()
 
void WriteComment (string text)
 
void WriteCData (string text)
 
void WriteStartElement (string prefix, string localName)
 
virtual void WriteStartElement (byte[] prefixBuffer, int prefixOffset, int prefixLength, byte[] localNameBuffer, int localNameOffset, int localNameLength)
 
void WriteStartElement (string prefix, XmlDictionaryString localName)
 
virtual Task WriteStartElementAsync (string prefix, string localName)
 
void WriteEndStartElement (bool isEmpty)
 
virtual Task WriteEndStartElementAsync (bool isEmpty)
 
void WriteEndElement (string prefix, string localName)
 
virtual void WriteEndElement (byte[] prefixBuffer, int prefixOffset, int prefixLength, byte[] localNameBuffer, int localNameOffset, int localNameLength)
 
virtual Task WriteEndElementAsync (string prefix, string localName)
 
void WriteXmlnsAttribute (string prefix, string ns)
 
virtual void WriteXmlnsAttribute (byte[] prefixBuffer, int prefixOffset, int prefixLength, byte[] nsBuffer, int nsOffset, int nsLength)
 
void WriteXmlnsAttribute (string prefix, XmlDictionaryString ns)
 
void WriteStartAttribute (string prefix, string localName)
 
virtual void WriteStartAttribute (byte[] prefixBuffer, int prefixOffset, int prefixLength, byte[] localNameBuffer, int localNameOffset, int localNameLength)
 
void WriteStartAttribute (string prefix, XmlDictionaryString localName)
 
void WriteEndAttribute ()
 
virtual Task WriteEndAttributeAsync ()
 
void WriteCharEntity (int ch)
 
void WriteEscapedText (string value)
 
void WriteEscapedText (XmlDictionaryString value)
 
void WriteEscapedText (char[] chars, int offset, int count)
 
void WriteEscapedText (byte[] buffer, int offset, int count)
 
void WriteText (string value)
 
void WriteText (XmlDictionaryString value)
 
void WriteText (char[] chars, int offset, int count)
 
void WriteText (byte[] buffer, int offset, int count)
 
void WriteInt32Text (int value)
 
void WriteInt64Text (long value)
 
void WriteBoolText (bool value)
 
void WriteUInt64Text (ulong value)
 
void WriteFloatText (float value)
 
void WriteDoubleText (double value)
 
void WriteDecimalText (decimal value)
 
void WriteDateTimeText (DateTime value)
 
void WriteUniqueIdText (UniqueId value)
 
void WriteTimeSpanText (TimeSpan value)
 
void WriteGuidText (Guid value)
 
void WriteStartListText ()
 
void WriteListSeparator ()
 
void WriteEndListText ()
 
void WriteBase64Text (byte[] trailBuffer, int trailCount, byte[] buffer, int offset, int count)
 
virtual Task WriteBase64TextAsync (byte[] trailBuffer, int trailCount, byte[] buffer, int offset, int count)
 
void WriteQualifiedName (string prefix, XmlDictionaryString localName)
 

Protected Member Functions

 XmlStreamNodeWriter ()
 
void SetOutput (Stream stream, bool ownsStream, Encoding encoding)
 
byte[] GetBuffer (int count, out int offset)
 
async Task< BytesWithOffsetGetBufferAsync (int count)
 
void Advance (int count)
 
void WriteByte (byte b)
 
Task WriteByteAsync (byte b)
 
void WriteByte (char ch)
 
Task WriteByteAsync (char ch)
 
void WriteBytes (byte b1, byte b2)
 
Task WriteBytesAsync (byte b1, byte b2)
 
void WriteBytes (char ch1, char ch2)
 
Task WriteBytesAsync (char ch1, char ch2)
 
unsafe void UnsafeWriteBytes (byte *bytes, int byteCount)
 
unsafe void WriteUTF8Char (int ch)
 
void WriteUTF8Chars (byte[] chars, int charOffset, int charCount)
 
unsafe void WriteUTF8Chars (string value)
 
unsafe void UnsafeWriteUTF8Chars (char *chars, int charCount)
 
unsafe void UnsafeWriteUnicodeChars (char *chars, int charCount)
 
unsafe int UnsafeGetUnicodeChars (char *chars, int charCount, byte[] buffer, int offset)
 
unsafe int UnsafeGetUTF8Length (char *chars, int charCount)
 
unsafe int UnsafeGetUTF8Chars (char *chars, int charCount, byte[] buffer, int offset)
 
virtual void FlushBuffer ()
 
virtual Task FlushBufferAsync ()
 

Properties

byte[] StreamBuffer [get]
 
int BufferOffset [get]
 
int Position [get]
 
static XmlNodeWriter Null [get]
 

Private Member Functions

int GetByteCount (char[] chars)
 
void EnsureByte ()
 
async Task FlushBufferAndWriteByteAsync (byte b)
 
async Task FlushAndWriteBytesAsync (byte b1, byte b2)
 

Private Attributes

Stream _stream
 
readonly byte[] _buffer
 
int _offset
 
bool _ownsStream
 
Encoding _encoding
 

Static Private Attributes

const int bufferLength = 512
 
const int maxBytesPerChar = 3
 
static readonly UTF8Encoding s_UTF8Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true)
 
static XmlNodeWriter s_nullNodeWriter
 

Detailed Description

Definition at line 7 of file XmlStreamNodeWriter.cs.


The documentation for this class was generated from the following file: