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

◆ WriteChars()

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

Definition at line 438 of file XmlJsonWriter.cs.

439 {
440 if (buffer == null)
441 {
442 throw new ArgumentNullException("buffer");
443 }
444 if (index < 0)
445 {
446 throw new ArgumentOutOfRangeException("index", System.SR.ValueMustBeNonNegative);
447 }
448 if (count < 0)
449 {
450 throw new ArgumentOutOfRangeException("count", System.SR.ValueMustBeNonNegative);
451 }
452 if (count > buffer.Length - index)
453 {
454 throw new ArgumentOutOfRangeException("count", System.SR.Format(System.SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index));
455 }
456 WriteString(new string(buffer, index, count));
457 }
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().