|
22 | 22 | </Interface>
|
23 | 23 | </Interfaces>
|
24 | 24 | <Docs>
|
25 |
| - <summary>To be added.</summary> |
| 25 | + <summary>Provides non-allocating, performant Brotli decompression methods. The methods decompress in a single pass without using a <see cref="T:System.IO.Compression.Brotli.BrotliStream" /> instance.</summary> |
26 | 26 | <remarks>To be added.</remarks>
|
27 | 27 | </Docs>
|
28 | 28 | <Members>
|
|
52 | 52 | <Parameter Name="bytesWritten" Type="System.Int32" RefType="out" />
|
53 | 53 | </Parameters>
|
54 | 54 | <Docs>
|
55 |
| - <param name="source">To be added.</param> |
56 |
| - <param name="destination">To be added.</param> |
57 |
| - <param name="bytesConsumed">To be added.</param> |
58 |
| - <param name="bytesWritten">To be added.</param> |
59 |
| - <summary>To be added.</summary> |
60 |
| - <returns>To be added.</returns> |
61 |
| - <remarks>To be added.</remarks> |
| 55 | + <param name="source">A buffer containing the compressed data.</param> |
| 56 | + <param name="destination">When this method returns, a byte span containing the decompressed data.</param> |
| 57 | + <param name="bytesConsumed">The total number of bytes that were read from <paramref name="source" />.</param> |
| 58 | + <param name="bytesWritten">The total number of bytes that were written in the <paramref name="destination" />.</param> |
| 59 | + <summary>Decompresses data that was compressed using the Brotli algorithm.</summary> |
| 60 | + <returns>One of the enumeration values that indicates the status of the decompression operation.</returns> |
| 61 | + <remarks> |
| 62 | + <format type="text/markdown"><![CDATA[ |
| 63 | +
|
| 64 | +## Remarks |
| 65 | +
|
| 66 | +The return value can be as follows: |
| 67 | +- <xref:System.Buffers.OperationStatus.Done?displayProperty=nameWithType>: `source` was successfully and completely decompressed into `destination`. |
| 68 | +- <xref:System.Buffers.OperationStatus.DestinationTooSmall?displayProperty=nameWithType>: There is not enough space in `destination` to decompress `source`. |
| 69 | +- <xref:System.Buffers.OperationStatus.NeedMoreData?displayProperty=nameWithType>: The decompression action is partially done at least one more byte is required to complete the decompression task. This method should be called again with more input to decompress. |
| 70 | +- <xref:System.Buffers.OperationStatus.InvalidData?displayProperty=nameWithType>: The data in `source` is invalid and could not be decompressed. |
| 71 | +
|
| 72 | + ]]></format> |
| 73 | + </remarks> |
62 | 74 | </Docs>
|
63 | 75 | </Member>
|
64 | 76 | <Member MemberName="Dispose">
|
|
85 | 97 | </ReturnValue>
|
86 | 98 | <Parameters />
|
87 | 99 | <Docs>
|
88 |
| - <summary>To be added.</summary> |
| 100 | + <summary>Releases all resources used by the current Brotli decoder instance.</summary> |
89 | 101 | <remarks>To be added.</remarks>
|
90 | 102 | </Docs>
|
91 | 103 | </Member>
|
|
114 | 126 | <Parameter Name="bytesWritten" Type="System.Int32" RefType="out" />
|
115 | 127 | </Parameters>
|
116 | 128 | <Docs>
|
117 |
| - <param name="source">To be added.</param> |
118 |
| - <param name="destination">To be added.</param> |
119 |
| - <param name="bytesWritten">To be added.</param> |
120 |
| - <summary>To be added.</summary> |
121 |
| - <returns>To be added.</returns> |
122 |
| - <remarks>To be added.</remarks> |
| 129 | + <param name="source">A buffer containing the compressed data.</param> |
| 130 | + <param name="destination">When this method returns, a byte span containing the decompressed data.</param> |
| 131 | + <param name="bytesWritten">The total number of bytes that were written in the <paramref name="destination" />.</param> |
| 132 | + <summary>Attempts to decompress data that was compressed with the Brotli algorithm.</summary> |
| 133 | + <returns><see langword="true" /> on success; <see langword="false" /> otherwise.</returns> |
| 134 | + <remarks> |
| 135 | + <format type="text/markdown"><![CDATA[ |
| 136 | +
|
| 137 | +## Remarks |
| 138 | +
|
| 139 | +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. |
| 140 | +
|
| 141 | + ]]></format> |
| 142 | + </remarks> |
123 | 143 | </Docs>
|
124 | 144 | </Member>
|
125 | 145 | </Members>
|
|
0 commit comments