RingDotNetfor Ring

System.IO.Compression

13 wrapped types. Load them with using { "System.IO.Compression" }. Click a class to open it.

BrotliCompressionOptions class sealed

System.IO.Compression.BrotliCompressionOptions · assembly System.IO.Compression.Brotli

Constructors

new BrotliCompressionOptions()

Ring: new BrotliCompressionOptions(args) uses one constructor; the others are chosen by the parameter names: new BrotliCompressionOptions().@New([ :param = value ]) or dnNew("BrotliCompressionOptions",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Qualityintread, writeo.Quality o.Quality = v
BrotliDecoder struct

System.IO.Compression.BrotliDecoder · assembly System.IO.Compression.Brotli

Implements: IDisposable

Methods

MethodRing call.NET overloads
DecompressDecompress(p1,p2)OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten)
DisposecallMethod("Dispose",[])void Dispose()
TryDecompressTryDecompress(p1,p2)static bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
BrotliEncoder struct

System.IO.Compression.BrotliEncoder · assembly System.IO.Compression.Brotli

Implements: IDisposable

Constructors

new BrotliEncoder(int quality, int window)

Ring: new BrotliEncoder(args) uses one constructor; the others are chosen by the parameter names: new BrotliEncoder().@New([ :param = value ]) or dnNew("BrotliEncoder",[ :param = value ]).

Methods

MethodRing call.NET overloads
CompressCompress(p1,p2,p3)OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock)
DisposecallMethod("Dispose",[])void Dispose()
FlushFlush(p1)OperationStatus Flush(Span<byte> destination, out int bytesWritten)
GetMaxCompressedLengthcallMethod("GetMaxCompressedLength",[p1])static int GetMaxCompressedLength(int inputSize)
TryCompressTryCompress([ :source = …, :destination = …, :bytesWritten = … ])
TryCompress([ :source = …, :destination = …, :bytesWritten = …, :quality = …, :window = … ])
static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int window)
BrotliStream class sealed · extends Stream

System.IO.Compression.BrotliStream · assembly System.IO.Compression.Brotli

Implements: IDisposable, IAsyncDisposable

Constructors

new BrotliStream(Stream stream, CompressionLevel compressionLevel)
new BrotliStream(Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
new BrotliStream(Stream stream, BrotliCompressionOptions compressionOptions, bool leaveOpen = …)
new BrotliStream(Stream stream, CompressionMode mode)
new BrotliStream(Stream stream, CompressionMode mode, bool leaveOpen)

Ring: new BrotliStream(args) uses one constructor; the others are chosen by the parameter names: new BrotliStream().@New([ :param = value ]) or dnNew("BrotliStream",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
BaseStreamStreamreado.BaseStream
CanReadboolreado.getCanRead()
CanWriteboolreado.getCanWrite()
CanSeekboolreado.getCanSeek()
Lengthlongreado.getLength()
Positionlongread, writeo.getPosition() o.setPosition(v)

Methods

MethodRing call.NET overloads
BeginReadcallMethod("BeginRead",[p1,p2,p3,p4,p5])IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
BeginWritecallMethod("BeginWrite",[p1,p2,p3,p4,p5])IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
DisposeAsynccallMethod("DisposeAsync",[])ValueTask DisposeAsync()
EndReadEndRead(p1)int EndRead(IAsyncResult asyncResult)
EndWriteEndWrite(p1)void EndWrite(IAsyncResult asyncResult)
FlushcallMethod("Flush",[])void Flush()
FlushAsyncFlushAsync(value)
FlushAsync([ :cancellationToken = … ])
Task FlushAsync(CancellationToken cancellationToken)
ReadRead(p1,p2,p3)int Read(byte[] buffer, int offset, int count)
int Read(Span<byte> buffer)
ReadAsyncReadAsync([ :buffer = …, :cancellationToken = … ])
ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …)
ReadBytecallMethod("ReadByte",[])int ReadByte()
SeekSeek(p1,p2)long Seek(long offset, SeekOrigin origin)
SetLengthcallMethod("SetLength",[p1])void SetLength(long value)
WriteWrite(p1,p2,p3)void Write(byte[] buffer, int offset, int count)
void Write(ReadOnlySpan<byte> buffer)
WriteAsyncWriteAsync([ :buffer = …, :cancellationToken = … ])
WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …)
WriteBytecallMethod("WriteByte",[p1])void WriteByte(byte value)

Members of the base class are inherited.

DeflateStream class · extends Stream

System.IO.Compression.DeflateStream · assembly System.IO.Compression

Implements: IDisposable, IAsyncDisposable

Constructors

new DeflateStream(Stream stream, CompressionMode mode)
new DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen)
new DeflateStream(Stream stream, CompressionLevel compressionLevel)
new DeflateStream(Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
new DeflateStream(Stream stream, ZLibCompressionOptions compressionOptions, bool leaveOpen = …)

Ring: new DeflateStream(args) uses one constructor; the others are chosen by the parameter names: new DeflateStream().@New([ :param = value ]) or dnNew("DeflateStream",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
BaseStreamStreamreado.BaseStream
CanReadboolreado.getCanRead()
CanWriteboolreado.getCanWrite()
CanSeekboolreado.getCanSeek()
Lengthlongreado.getLength()
Positionlongread, writeo.getPosition() o.setPosition(v)

Methods

MethodRing call.NET overloads
BeginReadcallMethod("BeginRead",[p1,p2,p3,p4,p5])IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
BeginWritecallMethod("BeginWrite",[p1,p2,p3,p4,p5])IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
CopyTocallMethod("CopyTo",[p1,p2])void CopyTo(Stream destination, int bufferSize)
CopyToAsyncCopyToAsync([ :destination = …, :bufferSize = …, :cancellationToken = … ])Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
DisposeAsynccallMethod("DisposeAsync",[])ValueTask DisposeAsync()
EndReadEndRead(p1)int EndRead(IAsyncResult asyncResult)
EndWriteEndWrite(p1)void EndWrite(IAsyncResult asyncResult)
FlushcallMethod("Flush",[])void Flush()
FlushAsyncFlushAsync(value)
FlushAsync([ :cancellationToken = … ])
Task FlushAsync(CancellationToken cancellationToken)
ReadRead(p1,p2,p3)int Read(byte[] buffer, int offset, int count)
int Read(Span<byte> buffer)
ReadAsyncReadAsync([ :buffer = …, :cancellationToken = … ])
ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …)
ReadBytecallMethod("ReadByte",[])int ReadByte()
SeekSeek(p1,p2)long Seek(long offset, SeekOrigin origin)
SetLengthcallMethod("SetLength",[p1])void SetLength(long value)
WriteWrite(p1,p2,p3)void Write(byte[] buffer, int offset, int count)
void Write(ReadOnlySpan<byte> buffer)
WriteAsyncWriteAsync([ :buffer = …, :cancellationToken = … ])
WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken)
WriteBytecallMethod("WriteByte",[p1])void WriteByte(byte value)

Members of the base class are inherited.

GZipStream class · extends Stream

System.IO.Compression.GZipStream · assembly System.IO.Compression

Implements: IDisposable, IAsyncDisposable

Constructors

new GZipStream(Stream stream, CompressionMode mode)
new GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
new GZipStream(Stream stream, CompressionLevel compressionLevel)
new GZipStream(Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
new GZipStream(Stream stream, ZLibCompressionOptions compressionOptions, bool leaveOpen = …)

Ring: new GZipStream(args) uses one constructor; the others are chosen by the parameter names: new GZipStream().@New([ :param = value ]) or dnNew("GZipStream",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
CanReadboolreado.getCanRead()
CanWriteboolreado.getCanWrite()
CanSeekboolreado.getCanSeek()
Lengthlongreado.getLength()
Positionlongread, writeo.getPosition() o.setPosition(v)
BaseStreamStreamreado.BaseStream

Methods

MethodRing call.NET overloads
BeginReadcallMethod("BeginRead",[p1,p2,p3,p4,p5])IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
BeginWritecallMethod("BeginWrite",[p1,p2,p3,p4,p5])IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
CopyTocallMethod("CopyTo",[p1,p2])void CopyTo(Stream destination, int bufferSize)
CopyToAsyncCopyToAsync([ :destination = …, :bufferSize = …, :cancellationToken = … ])Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
DisposeAsynccallMethod("DisposeAsync",[])ValueTask DisposeAsync()
EndReadEndRead(p1)int EndRead(IAsyncResult asyncResult)
EndWriteEndWrite(p1)void EndWrite(IAsyncResult asyncResult)
FlushcallMethod("Flush",[])void Flush()
FlushAsyncFlushAsync(value)
FlushAsync([ :cancellationToken = … ])
Task FlushAsync(CancellationToken cancellationToken)
ReadRead(p1,p2,p3)int Read(byte[] buffer, int offset, int count)
int Read(Span<byte> buffer)
ReadAsyncReadAsync([ :buffer = …, :cancellationToken = … ])
ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …)
ReadBytecallMethod("ReadByte",[])int ReadByte()
SeekSeek(p1,p2)long Seek(long offset, SeekOrigin origin)
SetLengthcallMethod("SetLength",[p1])void SetLength(long value)
WriteWrite(p1,p2,p3)void Write(byte[] buffer, int offset, int count)
void Write(ReadOnlySpan<byte> buffer)
WriteAsyncWriteAsync([ :buffer = …, :cancellationToken = … ])
WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …)
WriteBytecallMethod("WriteByte",[p1])void WriteByte(byte value)

Members of the base class are inherited.

ZipArchive class

System.IO.Compression.ZipArchive · assembly System.IO.Compression

Implements: IDisposable

Constructors

new ZipArchive(Stream stream)
new ZipArchive(Stream stream, ZipArchiveMode mode)
new ZipArchive(Stream stream, ZipArchiveMode mode, bool leaveOpen)
new ZipArchive(Stream stream, ZipArchiveMode mode, bool leaveOpen, Encoding entryNameEncoding)

Ring: new ZipArchive(args) uses one constructor; the others are chosen by the parameter names: new ZipArchive().@New([ :param = value ]) or dnNew("ZipArchive",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Commentstringread, writeo.Comment o.Comment = v
EntriesReadOnlyCollection<ZipArchiveEntry>reado.Entries
ModeZipArchiveModereado.Mode

Methods

MethodRing call.NET overloads
CreateEntryCreateEntry(value)
CreateEntry([ :entryName = … ])
CreateEntry([ :entryName = …, :compressionLevel = … ])
ZipArchiveEntry CreateEntry(string entryName)
ZipArchiveEntry CreateEntry(string entryName, CompressionLevel compressionLevel)
DisposecallMethod("Dispose",[])void Dispose()
GetEntrycallMethod("GetEntry",[p1])ZipArchiveEntry GetEntry(string entryName)
ZipArchiveEntry class

System.IO.Compression.ZipArchiveEntry · assembly System.IO.Compression

Properties and fields

NameTypeAccessIn Ring
ArchiveZipArchivereado.Archive
Crc32uintreado.Crc32
IsEncryptedboolreado.IsEncrypted
CompressedLengthlongreado.CompressedLength
ExternalAttributesintread, writeo.ExternalAttributes o.ExternalAttributes = v
Commentstringread, writeo.Comment o.Comment = v
FullNamestringreado.FullName
LastWriteTimeDateTimeOffsetread, writeo.LastWriteTime o.LastWriteTime = v
Lengthlongreado.Length
Namestringreado.Name

Methods

MethodRing call.NET overloads
DeletecallMethod("Delete",[])void Delete()
OpencallMethod("Open",[])Stream Open()
ToStringcallMethod("ToString",[])string ToString()
ZipFile class static

System.IO.Compression.ZipFile · assembly System.IO.Compression.ZipFile

Methods

MethodRing call.NET overloads
CreateFromDirectoryCreateFromDirectory([ :sourceDirectoryName = …, :destinationArchiveFileName = … ])
CreateFromDirectory([ :sourceDirectoryName = …, :destination = … ])
CreateFromDirectory([ :sourceDirectoryName = …, :destinationArchiveFileName = …, :compressionLevel = …, :includeBaseDirectory = … ])
CreateFromDirectory([ :sourceDirectoryName = …, :destination = …, :compressionLevel = …, :includeBaseDirectory = … ])
static void CreateFromDirectory(string sourceDirectoryName, string destinationArchiveFileName)
static void CreateFromDirectory(string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory)
static void CreateFromDirectory(string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory, Encoding entryNameEncoding)
static void CreateFromDirectory(string sourceDirectoryName, Stream destination)
static void CreateFromDirectory(string sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, bool includeBaseDirectory)
static void CreateFromDirectory(string sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, bool includeBaseDirectory, Encoding entryNameEncoding)
ExtractToDirectoryExtractToDirectory([ :sourceArchiveFileName = …, :destinationDirectoryName = … ])
ExtractToDirectory([ :source = …, :destinationDirectoryName = … ])
ExtractToDirectory([ :sourceArchiveFileName = …, :destinationDirectoryName = …, :overwriteFiles = … ])
ExtractToDirectory([ :sourceArchiveFileName = …, :destinationDirectoryName = …, :entryNameEncoding = … ])
static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName)
static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName, bool overwriteFiles)
static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName, Encoding entryNameEncoding)
static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName, Encoding entryNameEncoding, bool overwriteFiles)
static void ExtractToDirectory(Stream source, string destinationDirectoryName)
static void ExtractToDirectory(Stream source, string destinationDirectoryName, bool overwriteFiles)
static void ExtractToDirectory(Stream source, string destinationDirectoryName, Encoding entryNameEncoding)
static void ExtractToDirectory(Stream source, string destinationDirectoryName, Encoding entryNameEncoding, bool overwriteFiles)
OpenOpen([ :archiveFileName = …, :mode = … ])
Open([ :archiveFileName = …, :mode = …, :entryNameEncoding = … ])
static ZipArchive Open(string archiveFileName, ZipArchiveMode mode)
static ZipArchive Open(string archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
OpenReadOpenRead(p1)static ZipArchive OpenRead(string archiveFileName)
ZipFileExtensions class static

System.IO.Compression.ZipFileExtensions · assembly System.IO.Compression.ZipFile

Methods

MethodRing call.NET overloads
CreateEntryFromFileCreateEntryFromFile([ :destination = …, :sourceFileName = …, :entryName = … ])
CreateEntryFromFile([ :destination = …, :sourceFileName = …, :entryName = …, :compressionLevel = … ])
static ZipArchiveEntry CreateEntryFromFile(ZipArchive destination, string sourceFileName, string entryName)
static ZipArchiveEntry CreateEntryFromFile(ZipArchive destination, string sourceFileName, string entryName, CompressionLevel compressionLevel)
ExtractToDirectoryExtractToDirectory([ :source = …, :destinationDirectoryName = … ])
ExtractToDirectory([ :source = …, :destinationDirectoryName = …, :overwriteFiles = … ])
static void ExtractToDirectory(ZipArchive source, string destinationDirectoryName)
static void ExtractToDirectory(ZipArchive source, string destinationDirectoryName, bool overwriteFiles)
ExtractToFileExtractToFile([ :source = …, :destinationFileName = … ])
ExtractToFile([ :source = …, :destinationFileName = …, :overwrite = … ])
static void ExtractToFile(ZipArchiveEntry source, string destinationFileName)
static void ExtractToFile(ZipArchiveEntry source, string destinationFileName, bool overwrite)
ZLibCompressionOptions class sealed

System.IO.Compression.ZLibCompressionOptions · assembly System.IO.Compression

Constructors

new ZLibCompressionOptions()

Ring: new ZLibCompressionOptions(args) uses one constructor; the others are chosen by the parameter names: new ZLibCompressionOptions().@New([ :param = value ]) or dnNew("ZLibCompressionOptions",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
CompressionLevelintread, writeo.CompressionLevel o.CompressionLevel = v
CompressionStrategyZLibCompressionStrategyread, writeo.CompressionStrategy o.CompressionStrategy = v
ZLibException class · extends IOException

System.IO.Compression.ZLibException · assembly System.IO.Compression

Implements: ISerializable

Constructors

new ZLibException(string message, string zlibErrorContext, int zlibErrorCode, string zlibErrorMessage)
new ZLibException()
new ZLibException(string message, Exception innerException)

Ring: new ZLibException(args) uses one constructor; the others are chosen by the parameter names: new ZLibException().@New([ :param = value ]) or dnNew("ZLibException",[ :param = value ]).

Members of the base class are inherited.

ZLibStream class sealed · extends Stream

System.IO.Compression.ZLibStream · assembly System.IO.Compression

Implements: IDisposable, IAsyncDisposable

Constructors

new ZLibStream(Stream stream, CompressionMode mode)
new ZLibStream(Stream stream, CompressionMode mode, bool leaveOpen)
new ZLibStream(Stream stream, CompressionLevel compressionLevel)
new ZLibStream(Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
new ZLibStream(Stream stream, ZLibCompressionOptions compressionOptions, bool leaveOpen = …)

Ring: new ZLibStream(args) uses one constructor; the others are chosen by the parameter names: new ZLibStream().@New([ :param = value ]) or dnNew("ZLibStream",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
CanReadboolreado.getCanRead()
CanWriteboolreado.getCanWrite()
CanSeekboolreado.getCanSeek()
Lengthlongreado.getLength()
Positionlongread, writeo.getPosition() o.setPosition(v)
BaseStreamStreamreado.BaseStream

Methods

MethodRing call.NET overloads
BeginReadcallMethod("BeginRead",[p1,p2,p3,p4,p5])IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
BeginWritecallMethod("BeginWrite",[p1,p2,p3,p4,p5])IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
CopyTocallMethod("CopyTo",[p1,p2])void CopyTo(Stream destination, int bufferSize)
CopyToAsyncCopyToAsync([ :destination = …, :bufferSize = …, :cancellationToken = … ])Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
DisposeAsynccallMethod("DisposeAsync",[])ValueTask DisposeAsync()
EndReadEndRead(p1)int EndRead(IAsyncResult asyncResult)
EndWriteEndWrite(p1)void EndWrite(IAsyncResult asyncResult)
FlushcallMethod("Flush",[])void Flush()
FlushAsyncFlushAsync(value)
FlushAsync([ :cancellationToken = … ])
Task FlushAsync(CancellationToken cancellationToken)
ReadRead(p1,p2,p3)int Read(byte[] buffer, int offset, int count)
int Read(Span<byte> buffer)
ReadAsyncReadAsync([ :buffer = …, :cancellationToken = … ])
ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …)
ReadBytecallMethod("ReadByte",[])int ReadByte()
SeekSeek(p1,p2)long Seek(long offset, SeekOrigin origin)
SetLengthcallMethod("SetLength",[p1])void SetLength(long value)
WriteWrite(p1,p2,p3)void Write(byte[] buffer, int offset, int count)
void Write(ReadOnlySpan<byte> buffer)
WriteAsyncWriteAsync([ :buffer = …, :cancellationToken = … ])
WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …)
WriteBytecallMethod("WriteByte",[p1])void WriteByte(byte value)

Members of the base class are inherited.