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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET