Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.IO.Compression.BrotliStream Class Referencesealed

Public Member Functions

 BrotliStream (Stream stream, CompressionLevel compressionLevel)
 
 BrotliStream (Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
 
override void Write (byte[] buffer, int offset, int count)
 
override void WriteByte (byte value)
 
override void Write (ReadOnlySpan< byte > buffer)
 
override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState)
 
override void EndWrite (IAsyncResult asyncResult)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override ValueTask WriteAsync (ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
override void Flush ()
 
override Task FlushAsync (CancellationToken cancellationToken)
 
override int Read (byte[] buffer, int offset, int count)
 
override int ReadByte ()
 
override int Read (Span< byte > buffer)
 
override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState)
 
override int EndRead (IAsyncResult asyncResult)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override ValueTask< int > ReadAsync (Memory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
 BrotliStream (Stream stream, CompressionMode mode)
 
 BrotliStream (Stream stream, CompressionMode mode, bool leaveOpen)
 
override async ValueTask DisposeAsync ()
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
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 ()
 
Task FlushAsync ()
 
Task< int > ReadAsync (byte[] buffer, int offset, int count)
 
Task WriteAsync (byte[] buffer, int offset, int count)
 
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

void WriteCore (ReadOnlySpan< byte > buffer, bool isFinalBlock=false)
 
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

Stream BaseStream [get]
 
override bool CanRead [get]
 
override bool CanWrite [get]
 
override bool CanSeek [get]
 
override long Length [get]
 
override long Position [get, set]
 
bool AsyncOperationIsActive [get]
 
virtual bool CanTimeout [get]
 
virtual int ReadTimeout [get, set]
 
virtual int WriteTimeout [get, set]
 

Private Member Functions

async ValueTask WriteAsyncMemoryCore (ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken, bool isFinalBlock=false)
 
async Task FlushAsyncCore (CancellationToken cancellationToken)
 
bool TryDecompress (Span< byte > destination, out int bytesWritten)
 
void EnsureNotDisposed ()
 
void ReleaseStateForDispose ()
 
void EnsureNoActiveAsyncOperation ()
 
void AsyncOperationStarting ()
 
void AsyncOperationCompleting ()
 
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 ThrowInvalidStream ()
 
static void ThrowInvalidBeginCall ()
 
static void RunReadWriteTaskWhenReady (Task asyncWaiter, ReadWriteTask readWriteTask)
 
static void RunReadWriteTask (ReadWriteTask readWriteTask)
 
static async Task FinishWriteAsync (Task writeTask, byte[] localBuffer)
 

Private Attributes

BrotliEncoder _encoder
 
BrotliDecoder _decoder
 
int _bufferOffset
 
int _bufferCount
 
Stream _stream
 
byte[] _buffer
 
readonly bool _leaveOpen
 
readonly CompressionMode _mode
 
int _activeAsyncOperation
 

Detailed Description

Definition at line 8 of file BrotliStream.cs.


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