Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.Http.HttpConnection.ConnectionCloseReadStream Class Referencesealed

Public Member Functions

 ConnectionCloseReadStream (HttpConnection connection)
 
override int Read (Span< byte > buffer)
 
override async ValueTask< int > ReadAsync (Memory< byte > buffer, CancellationToken cancellationToken)
 
override Task CopyToAsync (Stream destination, int bufferSize, CancellationToken cancellationToken)
 
override void Write (ReadOnlySpan< byte > buffer)
 
override void Write (byte[] buffer, int offset, int count)
 
override ValueTask WriteAsync (ReadOnlyMemory< byte > destination, CancellationToken cancellationToken)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
Task WriteAsync (byte[] buffer, int offset, int count)
 
virtual ValueTask< boolDrainAsync (int maxDrainBytes)
 
void Dispose ()
 
override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 
virtual IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
 
override int EndRead (IAsyncResult asyncResult)
 
override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 
virtual IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
 
override void EndWrite (IAsyncResult asyncResult)
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
override int ReadByte ()
 
override int Read (byte[] buffer, int offset, int count)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
Task< int > ReadAsync (byte[] buffer, int offset, int count)
 
override void WriteByte (byte value)
 
override void Flush ()
 
override Task FlushAsync (CancellationToken cancellationToken)
 
Task FlushAsync ()
 
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 void Close ()
 
virtual ValueTask DisposeAsync ()
 
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)
 
HttpConnection GetConnectionOrThrow ()
 
SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized ()
 
virtual WaitHandle CreateWaitHandle ()
 
virtual void ObjectInvariant ()
 
MarshalByRefObject MemberwiseClone (bool cloneIdentity)
 

Static Protected Member Functions

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

Protected Attributes

HttpConnection _connection
 
SemaphoreSlim _asyncActiveSemaphore
 

Package Functions

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

override bool CanRead [get]
 
override bool CanWrite [get]
 
virtual bool NeedsDrain [get]
 
bool IsDisposed [get]
 
bool CanReadFromConnection [get]
 
override bool CanSeek [get]
 
override long Length [get]
 
override long Position [get, set]
 
virtual bool CanTimeout [get]
 
virtual int ReadTimeout [get, set]
 
virtual int WriteTimeout [get, set]
 

Private Member Functions

async Task CompleteCopyToAsync (Task copyTask, HttpConnection connection, CancellationToken cancellationToken)
 
void Finish (HttpConnection connection)
 
async Task DrainOnDisposeAsync ()
 
HttpConnection ThrowObjectDisposedException ()
 
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

int _disposed
 

Detailed Description

Definition at line 416 of file HttpConnection.cs.


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