Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteRaw() [1/2]

override void System.Runtime.Serialization.Json.XmlJsonWriter.WriteRaw ( char[] buffer,
int index,
int count )
inline

Definition at line 698 of file XmlJsonWriter.cs.

699 {
700 if (buffer == null)
701 {
702 throw new ArgumentNullException("buffer");
703 }
704 if (index < 0)
705 {
706 throw new ArgumentOutOfRangeException("index", System.SR.ValueMustBeNonNegative);
707 }
708 if (count < 0)
709 {
710 throw new ArgumentOutOfRangeException("count", System.SR.ValueMustBeNonNegative);
711 }
712 if (count > buffer.Length - index)
713 {
714 throw new ArgumentOutOfRangeException("count", System.SR.Format(System.SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index));
715 }
716 WriteString(new string(buffer, index, count));
717 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string JsonSizeExceedsRemainingBufferSpace
Definition SR.cs:544
static string ValueMustBeNonNegative
Definition SR.cs:296
Definition SR.cs:7

References System.buffer, System.count, System.SR.Format(), System.index, System.SR.JsonSizeExceedsRemainingBufferSpace, System.SR.ValueMustBeNonNegative, and System.Runtime.Serialization.Json.XmlJsonWriter.WriteString().