BrotliDecoder.TryDecompress Method
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.
Attempts to decompress data that was compressed with the Brotli algorithm.
public:
static bool TryDecompress(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryDecompress (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryDecompress : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryDecompress (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
- source
- ReadOnlySpan<Byte>
A buffer containing the compressed data.
- bytesWritten
- Int32
The total number of bytes that were written in the destination
.
true
on success; false
otherwise.
If this method returns false
, destination
may be empty or contain partially decompressed data, with bytesWritten
being zero or greater than zero but less than the expected total.
Product | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: