BrotliDecoder.TryDecompress 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.
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
Parameters
- source
- ReadOnlySpan<Byte>
A buffer containing the compressed data.
- bytesWritten
- Int32
The total number of bytes that were written in the destination
.
Returns
true
on success; false
otherwise.
Remarks
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.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.