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

◆ CreateTemporaryBuffer()

bool System.Net.Http.HttpContent.CreateTemporaryBuffer ( long maxBufferSize,
out MemoryStream tempBuffer,
out Exception error )
inlineprivateinherited

Definition at line 665 of file HttpContent.cs.

666 {
667 if (maxBufferSize > int.MaxValue)
668 {
669 throw new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize, System.SR.Format(CultureInfo.InvariantCulture, System.SR.net_http_content_buffersize_limit, int.MaxValue));
670 }
671 if (IsBuffered)
672 {
673 tempBuffer = null;
674 error = null;
675 return false;
676 }
677 tempBuffer = CreateMemoryStream(maxBufferSize, out error);
678 return true;
679 }
static CultureInfo InvariantCulture
MemoryStream CreateMemoryStream(long maxBufferSize, out Exception error)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_http_content_buffersize_limit
Definition SR.cs:84
Definition SR.cs:7

References System.Net.Http.HttpContent.CreateMemoryStream(), System.SR.Format(), System.Globalization.CultureInfo.InvariantCulture, System.Net.Http.HttpContent.IsBuffered, and System.SR.net_http_content_buffersize_limit.

Referenced by System.Net.Http.HttpContent.LoadIntoBuffer(), and System.Net.Http.HttpContent.LoadIntoBufferAsync().