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

◆ ReadValueAsBase64()

override int System.Runtime.Serialization.Json.XmlJsonReader.ReadValueAsBase64 ( byte[] buffer,
int offset,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlDictionaryReader.

Definition at line 477 of file XmlJsonReader.cs.

478 {
480 {
481 if (buffer == null)
482 {
483 throw new ArgumentNullException("buffer");
484 }
485 if (offset < 0)
486 {
487 throw new ArgumentOutOfRangeException("offset", System.SR.ValueMustBeNonNegative);
488 }
489 if (offset > buffer.Length)
490 {
491 throw new ArgumentOutOfRangeException("offset", System.SR.Format(System.SR.OffsetExceedsBufferSize, buffer.Length));
492 }
493 if (count < 0)
494 {
495 throw new ArgumentOutOfRangeException("count", System.SR.ValueMustBeNonNegative);
496 }
497 if (count > buffer.Length - offset)
498 {
499 throw new ArgumentOutOfRangeException("count", System.SR.Format(System.SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
500 }
501 return 0;
502 }
503 return base.ReadValueAsBase64(buffer, offset, count);
504 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string ValueMustBeNonNegative
Definition SR.cs:296
static string SizeExceedsRemainingBufferSpace
Definition SR.cs:324
static string OffsetExceedsBufferSize
Definition SR.cs:322
Definition SR.cs:7

References System.buffer, System.count, System.Runtime.Serialization.Dictionary, System.SR.Format(), System.Runtime.Serialization.Json.XmlJsonReader.IsAttributeValue, System.offset, System.SR.OffsetExceedsBufferSize, System.SR.SizeExceedsRemainingBufferSpace, and System.SR.ValueMustBeNonNegative.