GZipEncoder.TryCompress Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32) | |
| TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32) | |
| TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Int32) |
TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32)
- Source:
- GZipEncoder.cs
public:
static bool TryCompress(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryCompress : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryCompress (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
Parameters
- source
- ReadOnlySpan<Byte>
- bytesWritten
- Int32
Returns
Applies to
TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32)
- Source:
- GZipEncoder.cs
public:
static bool TryCompress(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten, int quality);
public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality);
static member TryCompress : ReadOnlySpan<byte> * Span<byte> * int * int -> bool
Public Shared Function TryCompress (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer, quality As Integer) As Boolean
Parameters
- source
- ReadOnlySpan<Byte>
- bytesWritten
- Int32
- quality
- Int32
Returns
Applies to
TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Int32)
- Source:
- GZipEncoder.cs
public:
static bool TryCompress(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten, int quality, int windowLog);
public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int windowLog);
static member TryCompress : ReadOnlySpan<byte> * Span<byte> * int * int * int -> bool
Public Shared Function TryCompress (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer, quality As Integer, windowLog As Integer) As Boolean
Parameters
- source
- ReadOnlySpan<Byte>
- bytesWritten
- Int32
- quality
- Int32
- windowLog
- Int32