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

◆ WriteBase64Async()

override Task System.Xml.XmlBaseWriter.WriteBase64Async ( byte[] buffer,
int offset,
int count )
inlinevirtualinherited

Reimplemented from System.Xml.XmlWriter.

Definition at line 2374 of file XmlBaseWriter.cs.

2375 {
2376 if (IsClosed)
2377 {
2378 ThrowClosed();
2379 }
2380 if (buffer == null)
2381 {
2382 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer"));
2383 }
2384 if (offset < 0)
2385 {
2386 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", System.SR.ValueMustBeNonNegative));
2387 }
2388 if (count < 0)
2389 {
2390 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", System.SR.ValueMustBeNonNegative));
2391 }
2392 if (count > buffer.Length - offset)
2393 {
2394 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", System.SR.Format(System.SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
2395 }
2397 }
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
Definition SR.cs:7
async Task WriteBase64AsyncImpl(byte[] buffer, int offset, int count)

References System.buffer, System.count, System.SR.Format(), System.Xml.XmlBaseWriter.IsClosed, System.offset, System.SR.SizeExceedsRemainingBufferSpace, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.SR.ValueMustBeNonNegative, and System.Xml.XmlBaseWriter.WriteBase64AsyncImpl().