Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.HttpResponseStream Class Referencesealed

Public Member Functions

override void Flush ()
 
override Task FlushAsync (CancellationToken cancellationToken)
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
override int Read (byte[] buffer, int offset, int size)
 
override IAsyncResult BeginRead (byte[] buffer, int offset, int size, AsyncCallback callback, object state)
 
override int EndRead (IAsyncResult asyncResult)
 
override void Write (byte[] buffer, int offset, int count)
 
override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 
override void EndWrite (IAsyncResult asyncResult)
 
void CopyTo (Stream destination)
 
virtual void CopyTo (Stream destination, int bufferSize)
 
Task CopyToAsync (Stream destination)
 
Task CopyToAsync (Stream destination, int bufferSize)
 
Task CopyToAsync (Stream destination, CancellationToken cancellationToken)
 
virtual Task CopyToAsync (Stream destination, int bufferSize, CancellationToken cancellationToken)
 
void Dispose ()
 
virtual void Close ()
 
virtual ValueTask DisposeAsync ()
 
Task FlushAsync ()
 
virtual IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
 
Task< int > ReadAsync (byte[] buffer, int offset, int count)
 
virtual Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
virtual ValueTask< int > ReadAsync (Memory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
virtual IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
 
Task WriteAsync (byte[] buffer, int offset, int count)
 
virtual Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
virtual ValueTask WriteAsync (ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
virtual int Read (Span< byte > buffer)
 
virtual int ReadByte ()
 
virtual void Write (ReadOnlySpan< byte > buffer)
 
virtual void WriteByte (byte value)
 
object GetLifetimeService ()
 
virtual object InitializeLifetimeService ()
 

Static Public Member Functions

static Stream Synchronized (Stream stream)
 

Static Public Attributes

static readonly Stream Null = new NullStream()
 

Protected Member Functions

override void Dispose (bool disposing)
 
SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized ()
 
virtual WaitHandle CreateWaitHandle ()
 
virtual void ObjectInvariant ()
 
MarshalByRefObject MemberwiseClone (bool cloneIdentity)
 

Static Protected Member Functions

static void ValidateBufferArguments (byte[] buffer, int offset, int count)
 
static void ValidateCopyToArguments (Stream destination, int bufferSize)
 

Protected Attributes

SemaphoreSlim _asyncActiveSemaphore
 

Package Functions

 HttpResponseStream (HttpListenerContext httpContext)
 
global::Interop.HttpApi.HTTP_FLAGS ComputeLeftToWrite ()
 
void SetClosedFlag ()
 
void SwitchToOpaqueMode ()
 
unsafe void CancelLastWrite (SafeHandle requestQueueHandle)
 
Task< int > BeginReadInternal (byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 
Task BeginWriteInternal (byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 

Properties

bool Closed [get]
 
override bool CanRead [get]
 
override bool CanSeek [get]
 
override bool CanWrite [get]
 
override long Length [get]
 
override long Position [get, set]
 
HttpListenerContext InternalHttpContext [get]
 
virtual bool CanTimeout [get]
 
virtual int ReadTimeout [get, set]
 
virtual int WriteTimeout [get, set]
 

Private Member Functions

unsafe void WriteCore (byte[] buffer, int offset, int size)
 
unsafe IAsyncResult BeginWriteCore (byte[] buffer, int offset, int size, AsyncCallback callback, object state)
 
void EndWriteCore (IAsyncResult asyncResult)
 
void UpdateAfterWrite (uint dataWritten)
 
unsafe void DisposeCore ()
 
bool HasOverriddenBeginEndRead ()
 
bool HasOverriddenBeginEndWrite ()
 
int GetCopyBufferSize ()
 
Task< int > BeginEndReadAsync (byte[] buffer, int offset, int count)
 
void FinishTrackingAsyncOperation (ReadWriteTask task)
 
Task BeginEndWriteAsync (byte[] buffer, int offset, int count)
 

Static Private Member Functions

static void RunReadWriteTaskWhenReady (Task asyncWaiter, ReadWriteTask readWriteTask)
 
static void RunReadWriteTask (ReadWriteTask readWriteTask)
 
static async Task FinishWriteAsync (Task writeTask, byte[] localBuffer)
 

Private Attributes

bool _closed
 
readonly HttpListenerContext _httpContext
 
long _leftToWrite = long.MinValue
 
bool _inOpaqueMode
 
HttpResponseStreamAsyncResult _lastWrite
 

Static Private Attributes

static readonly byte[] s_chunkTerminator = new byte[5] { 48, 13, 10, 13, 10 }
 

Detailed Description

Definition at line 11 of file HttpResponseStream.cs.


The documentation for this class was generated from the following file: