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

◆ WriteBase64()

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

Definition at line 384 of file XmlJsonWriter.cs.

385 {
386 if (buffer == null)
387 {
388 throw new ArgumentNullException("buffer");
389 }
390 if (index < 0)
391 {
392 throw new ArgumentOutOfRangeException("index", System.SR.ValueMustBeNonNegative);
393 }
394 if (count < 0)
395 {
396 throw new ArgumentOutOfRangeException("count", System.SR.ValueMustBeNonNegative);
397 }
398 if (count > buffer.Length - index)
399 {
400 throw new ArgumentOutOfRangeException("count", System.SR.Format(System.SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index));
401 }
402 StartText();
404 }
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
override void WriteBase64Text(byte[] trailBytes, int trailByteCount, byte[] buffer, int offset, int count)

References System.Runtime.Serialization.Json.XmlJsonWriter._nodeWriter, System.buffer, System.count, System.SR.Format(), System.index, System.SR.JsonSizeExceedsRemainingBufferSpace, System.Runtime.Serialization.Json.XmlJsonWriter.StartText(), System.SR.ValueMustBeNonNegative, and System.Xml.XmlUTF8NodeWriter.WriteBase64Text().