Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
class | ContentReadStream |
Package Functions | |
override bool | TryComputeLength (out long length) |
bool | TryGetBuffer (out ArraySegment< byte > buffer) |
byte[] | ReadBufferedContentAsByteArray () |
Stream | TryReadAsStream () |
ValueTask | InternalCopyToAsync (Stream stream, TransportContext context, CancellationToken cancellationToken) |
void | LoadIntoBuffer (long maxBufferSize, CancellationToken cancellationToken) |
Task | LoadIntoBufferAsync (CancellationToken cancellationToken) |
Task | LoadIntoBufferAsync (long maxBufferSize, CancellationToken cancellationToken) |
virtual Stream | TryCreateContentReadStream () |
long? | GetComputedOrBufferLength () |
Static Package Functions | |
static string | ReadBufferAsString (ArraySegment< byte > buffer, HttpContentHeaders headers) |
static bool | StreamCopyExceptionNeedsWrapping (Exception e) |
static Exception | WrapStreamCopyException (Exception e) |
Static Package Attributes | |
static readonly Encoding | DefaultStringEncoding = Encoding.UTF8 |
Properties | |
HeaderEncodingSelector< HttpContent >? | HeaderEncodingSelector [get, set] |
override bool | AllowDuplex [get] |
HttpContentHeaders | Headers [get] |
bool | IsBuffered [get] |
Private Member Functions | |
IEnumerator IEnumerable. | GetEnumerator () |
async ValueTask< Stream > | CreateContentReadStreamAsyncCore (bool async, CancellationToken cancellationToken) |
void | SerializeHeadersToStream (Stream stream, HttpContent content, bool writeDivider) |
Stream | EncodeHeadersToNewStream (HttpContent content, bool writeDivider) |
string | ReadBufferedContentAsString () |
async Task | LoadIntoBufferAsyncCore (Task serializeToStreamTask, MemoryStream tempBuffer) |
bool | CreateTemporaryBuffer (long maxBufferSize, out MemoryStream tempBuffer, out Exception error) |
MemoryStream | CreateMemoryStream (long maxBufferSize, out Exception error) |
void | CheckDisposed () |
void | CheckTaskNotNull (Task task) |
Static Private Member Functions | |
static void | ValidateBoundary (string boundary) |
static string | GetDefaultBoundary () |
static ValueTask | EncodeStringToStreamAsync (Stream stream, string input, CancellationToken cancellationToken) |
static Stream | EncodeStringToNewStream (string input) |
static void | WriteToStream (Stream stream, string content) |
static void | WriteToStream (Stream stream, string content, Encoding encoding) |
static Exception | GetStreamCopyException (Exception originalException) |
static int | GetPreambleLength (ArraySegment< byte > buffer, Encoding encoding) |
static bool | TryDetectEncoding (ArraySegment< byte > buffer, [NotNullWhen(true)] out Encoding encoding, out int preambleLength) |
static bool | BufferHasPrefix (ArraySegment< byte > buffer, byte[] prefix) |
static async Task< TResult > | WaitAndReturnAsync< TState, TResult > (Task waitTask, TState state, Func< TState, TResult > returnFunc) |
static Exception | CreateOverCapacityException (int maxBufferSize) |
Private Attributes | |
readonly List< HttpContent > | _nestedContent |
readonly string | _boundary |
HttpContentHeaders | _headers |
MemoryStream | _bufferedContent |
object | _contentReadStream |
bool | _disposed |
bool | _canCalculateLength |
Definition at line 13 of file MultipartContent.cs.