|
1 |
| -<Type Name="EncodingExtensions" FullName="System.Text.EncodingExtensions"> |
| 1 | +<Type Name="EncodingExtensions" FullName="System.Text.EncodingExtensions"> |
2 | 2 | <TypeSignature Language="C#" Value="public static class EncodingExtensions" />
|
3 | 3 | <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit EncodingExtensions extends System.Object" />
|
4 | 4 | <TypeSignature Language="DocId" Value="T:System.Text.EncodingExtensions" />
|
|
49 | 49 | <Parameter Name="completed" Type="System.Boolean" RefType="out" />
|
50 | 50 | </Parameters>
|
51 | 51 | <Docs>
|
52 |
| - <param name="decoder">To be added.</param> |
53 |
| - <param name="bytes">To be added.</param> |
54 |
| - <param name="writer">To be added.</param> |
55 |
| - <param name="flush">To be added.</param> |
56 |
| - <param name="charsUsed">To be added.</param> |
57 |
| - <param name="completed">To be added.</param> |
58 |
| - <summary>To be added.</summary> |
| 52 | + <param name="decoder">The decoder instance that can convert bytes to <see langword="char" /> values.</param> |
| 53 | + <param name="bytes">A sequence of bytes to decode.</param> |
| 54 | + <param name="writer">The buffer to which the decoded characters will be written.</param> |
| 55 | + <param name="flush"> |
| 56 | + <see langword="true" /> to indicate no further data is to be converted; otherwise <see langword="false" />.</param> |
| 57 | + <param name="charsUsed">When this method returns, contains the count of characters that were written to <paramref name="writer" />.</param> |
| 58 | + <param name="completed">When this method returns, contains <see langword="true" /> if <paramref name="decoder" /> contains no partial internal state; otherwise, <see langword="false" />. |
| 59 | + If <paramref name="flush" /> is <see langword="true" />, this will always be set to <see langword="true" /> when the method returns.</param> |
| 60 | + <summary>Converts a <see cref="T:System.Buffers.ReadOnlySequence`1" /> to UTF-16 encoded characters and writes the result to <paramref name="writer" />.</summary> |
59 | 61 | <remarks>To be added.</remarks>
|
60 | 62 | </Docs>
|
61 | 63 | </Member>
|
|
83 | 85 | <Parameter Name="completed" Type="System.Boolean" RefType="out" />
|
84 | 86 | </Parameters>
|
85 | 87 | <Docs>
|
86 |
| - <param name="decoder">To be added.</param> |
87 |
| - <param name="bytes">To be added.</param> |
88 |
| - <param name="writer">To be added.</param> |
89 |
| - <param name="flush">To be added.</param> |
90 |
| - <param name="charsUsed">To be added.</param> |
91 |
| - <param name="completed">To be added.</param> |
92 |
| - <summary>To be added.</summary> |
| 88 | + <param name="decoder">The decoder instance that can convert bytes to <see langword="char" /> values.</param> |
| 89 | + <param name="bytes">A sequence of bytes to decode.</param> |
| 90 | + <param name="writer">The buffer to which the decoded chars will be written.</param> |
| 91 | + <param name="flush"> |
| 92 | + <see langword="true" /> to indicate no further data is to be converted; otherwise <see langword="false" />.</param> |
| 93 | + <param name="charsUsed">When this method returns, contains the count of <see langword="char" />s which were written to <paramref name="writer" />.</param> |
| 94 | + <param name="completed">When this method returns, contains <see langword="true" /> if <paramref name="decoder" /> contains no partial internal state; otherwise, <see langword="false" />. |
| 95 | + If <paramref name="flush" /> is <see langword="true" />, this will always be set to <see langword="true" /> when the method returns.</param> |
| 96 | + <summary>Converts a <see cref="T:System.ReadOnlySpan`1" /> to chars using <paramref name="decoder" /> and writes the result to <paramref name="writer" />.</summary> |
93 | 97 | <remarks>To be added.</remarks>
|
94 | 98 | </Docs>
|
95 | 99 | </Member>
|
|
124 | 128 | <Parameter Name="completed" Type="System.Boolean" RefType="out" />
|
125 | 129 | </Parameters>
|
126 | 130 | <Docs>
|
127 |
| - <param name="encoder">To be added.</param> |
128 |
| - <param name="chars">To be added.</param> |
129 |
| - <param name="writer">To be added.</param> |
130 |
| - <param name="flush">To be added.</param> |
131 |
| - <param name="bytesUsed">To be added.</param> |
132 |
| - <param name="completed">To be added.</param> |
133 |
| - <summary>To be added.</summary> |
| 131 | + <param name="encoder">The encoder instance that can convert <see langword="char" /> values to bytes.</param> |
| 132 | + <param name="chars">A sequence of characters to encode.</param> |
| 133 | + <param name="writer">The buffer to which the encoded bytes will be written.</param> |
| 134 | + <param name="flush"> |
| 135 | + <see langword="true" /> to indicate no further data is to be converted; otherwise <see langword="false" />.</param> |
| 136 | + <param name="bytesUsed">When this method returns, contains the count of <see langword="byte" />s which were written to <paramref name="writer" />.</param> |
| 137 | + <param name="completed">When this method returns, contains <see langword="true" /> if all input up until <paramref name="bytesUsed" /> was converted; otherwise, <see langword="false" />. If <paramref name="flush" /> is <see langword="true" />, this will always be set to <see langword="true" /> when the method returns.</param> |
| 138 | + <summary>Converts a <see cref="T:System.Buffers.ReadOnlySequence`1" /> to encoded bytes and writes the result to <paramref name="writer" />.</summary> |
134 | 139 | <remarks>To be added.</remarks>
|
135 | 140 | </Docs>
|
136 | 141 | </Member>
|
|
158 | 163 | <Parameter Name="completed" Type="System.Boolean" RefType="out" />
|
159 | 164 | </Parameters>
|
160 | 165 | <Docs>
|
161 |
| - <param name="encoder">To be added.</param> |
162 |
| - <param name="chars">To be added.</param> |
163 |
| - <param name="writer">To be added.</param> |
164 |
| - <param name="flush">To be added.</param> |
165 |
| - <param name="bytesUsed">To be added.</param> |
166 |
| - <param name="completed">To be added.</param> |
167 |
| - <summary>To be added.</summary> |
| 166 | + <param name="encoder">The encoder instance that can convert <see langword="char" /> values to bytes.</param> |
| 167 | + <param name="chars">A sequence of characters to encode.</param> |
| 168 | + <param name="writer">The buffer to which the encoded bytes will be written.</param> |
| 169 | + <param name="flush"> |
| 170 | + <see langword="true" /> to indicate no further data is to be converted; otherwise <see langword="false" />.</param> |
| 171 | + <param name="bytesUsed">When this method returns, contains the count of <see langword="byte" />s which were written to <paramref name="writer" />.</param> |
| 172 | + <param name="completed">When this method returns, contains <see langword="true" /> if <paramref name="encoder" /> contains no partial internal state; otherwise, <see langword="false" />. |
| 173 | + If <paramref name="flush" /> is <see langword="true" />, this will always be set to <see langword="true" /> when the method returns.</param> |
| 174 | + <summary>Converts a <see cref="T:System.ReadOnlySpan`1" /> to bytes using <paramref name="encoder" /> and writes the result to <paramref name="writer" />.</summary> |
168 | 175 | <remarks>To be added.</remarks>
|
169 | 176 | </Docs>
|
170 | 177 | </Member>
|
|
195 | 202 | </Parameter>
|
196 | 203 | </Parameters>
|
197 | 204 | <Docs>
|
198 |
| - <param name="encoding">To be added.</param> |
199 |
| - <param name="chars">To be added.</param> |
200 |
| - <summary>To be added.</summary> |
201 |
| - <returns>To be added.</returns> |
| 205 | + <param name="encoding">The encoding that represents how the data in <paramref name="chars" /> should be encoded.</param> |
| 206 | + <param name="chars">The sequence to encode to bytes.</param> |
| 207 | + <summary>Encodes the specified <see cref="T:System.Buffers.ReadOnlySequence`1" /> into a <see cref="T:System.Byte" /> array using the specified <see cref="T:System.Text.Encoding" />.</summary> |
| 208 | + <returns>A <see cref="T:System.Byte" /> array that represents the encoded contents of <paramref name="chars" />.</returns> |
202 | 209 | <remarks>To be added.</remarks>
|
203 | 210 | </Docs>
|
204 | 211 | </Member>
|
|
230 | 237 | <Parameter Name="writer" Type="System.Buffers.IBufferWriter<System.Byte>" />
|
231 | 238 | </Parameters>
|
232 | 239 | <Docs>
|
233 |
| - <param name="encoding">To be added.</param> |
234 |
| - <param name="chars">To be added.</param> |
235 |
| - <param name="writer">To be added.</param> |
236 |
| - <summary>To be added.</summary> |
237 |
| - <returns>To be added.</returns> |
| 240 | + <param name="encoding">The encoding that represents how the data in <paramref name="chars" /> should be encoded.</param> |
| 241 | + <param name="chars">The <see cref="T:System.Buffers.ReadOnlySequence`1" /> whose contents should be encoded.</param> |
| 242 | + <param name="writer">The buffer to which the encoded bytes will be written.</param> |
| 243 | + <summary>Decodes the specified <see cref="T:System.Buffers.ReadOnlySequence`1" /> to <see langword="byte" />s using the specified <see cref="T:System.Text.Encoding" /> and writes the result to <paramref name="writer" />.</summary> |
| 244 | + <returns>The number of bytes written to <paramref name="writer" />.</returns> |
238 | 245 | <remarks>To be added.</remarks>
|
239 | 246 | </Docs>
|
240 | 247 | </Member>
|
|
266 | 273 | <Parameter Name="bytes" Type="System.Span<System.Byte>" />
|
267 | 274 | </Parameters>
|
268 | 275 | <Docs>
|
269 |
| - <param name="encoding">To be added.</param> |
270 |
| - <param name="chars">To be added.</param> |
271 |
| - <param name="bytes">To be added.</param> |
272 |
| - <summary>To be added.</summary> |
273 |
| - <returns>To be added.</returns> |
| 276 | + <param name="encoding">The encoding that represents how the data in <paramref name="chars" /> should be encoded.</param> |
| 277 | + <param name="chars">The sequence to encode to bytes.</param> |
| 278 | + <param name="bytes">The destination buffer to which the encoded bytes will be written.</param> |
| 279 | + <summary>Encodes the specified <see cref="T:System.Buffers.ReadOnlySequence`1" /> to <see langword="byte" />s using the specified <see cref="T:System.Text.Encoding" /> and outputs the result to <paramref name="bytes" />.</summary> |
| 280 | + <returns>The number of bytes written to <paramref name="bytes" />.</returns> |
274 | 281 | <remarks>To be added.</remarks>
|
275 | 282 | </Docs>
|
276 | 283 | </Member>
|
|
295 | 302 | <Parameter Name="writer" Type="System.Buffers.IBufferWriter<System.Byte>" />
|
296 | 303 | </Parameters>
|
297 | 304 | <Docs>
|
298 |
| - <param name="encoding">To be added.</param> |
299 |
| - <param name="chars">To be added.</param> |
300 |
| - <param name="writer">To be added.</param> |
301 |
| - <summary>To be added.</summary> |
| 305 | + <param name="encoding">The encoding that represents how the data in <paramref name="chars" /> should be encoded.</param> |
| 306 | + <param name="chars">The sequence to encode to bytes.</param> |
| 307 | + <param name="writer">The buffer to which the encoded bytes will be written.</param> |
| 308 | + <summary>Encodes the specified <see cref="T:System.ReadOnlySpan`1" /> to <see langword="byte" />s using the specified <see cref="T:System.Text.Encoding" /> and writes the result to <paramref name="writer" />.</summary> |
302 | 309 | <returns>To be added.</returns>
|
303 | 310 | <remarks>To be added.</remarks>
|
304 | 311 | </Docs>
|
|
331 | 338 | <Parameter Name="writer" Type="System.Buffers.IBufferWriter<System.Char>" />
|
332 | 339 | </Parameters>
|
333 | 340 | <Docs>
|
334 |
| - <param name="encoding">To be added.</param> |
335 |
| - <param name="bytes">To be added.</param> |
336 |
| - <param name="writer">To be added.</param> |
337 |
| - <summary>To be added.</summary> |
338 |
| - <returns>To be added.</returns> |
| 341 | + <param name="encoding">The encoding that represents how the data in <paramref name="bytes" /> should be decoded.</param> |
| 342 | + <param name="bytes">The sequence whose bytes should be decoded.</param> |
| 343 | + <param name="writer">The buffer to which the decoded chars will be written.</param> |
| 344 | + <summary>Decodes the specified <see cref="T:System.Buffers.ReadOnlySequence`1" /> to <see langword="char" />s using the specified <see cref="T:System.Text.Encoding" /> and writes the result to <paramref name="writer" />.</summary> |
| 345 | + <returns>The number of chars written to <paramref name="writer" />.</returns> |
339 | 346 | <remarks>To be added.</remarks>
|
340 | 347 | </Docs>
|
341 | 348 | </Member>
|
|
367 | 374 | <Parameter Name="chars" Type="System.Span<System.Char>" />
|
368 | 375 | </Parameters>
|
369 | 376 | <Docs>
|
370 |
| - <param name="encoding">To be added.</param> |
371 |
| - <param name="bytes">To be added.</param> |
372 |
| - <param name="chars">To be added.</param> |
373 |
| - <summary>To be added.</summary> |
374 |
| - <returns>To be added.</returns> |
| 377 | + <param name="encoding">The encoding that represents how the data in <paramref name="bytes" /> is encoded.</param> |
| 378 | + <param name="bytes">The sequence to decode to characters.</param> |
| 379 | + <param name="chars">The destination buffer to which the decoded characters will be written.</param> |
| 380 | + <summary>Decodes the specified <see cref="T:System.Buffers.ReadOnlySequence`1" /> to <see langword="char" />s using the specified <see cref="T:System.Text.Encoding" /> and outputs the result to <paramref name="chars" />.</summary> |
| 381 | + <returns>The number of chars written to <paramref name="chars" />.</returns> |
375 | 382 | <remarks>To be added.</remarks>
|
376 | 383 | </Docs>
|
377 | 384 | </Member>
|
|
396 | 403 | <Parameter Name="writer" Type="System.Buffers.IBufferWriter<System.Char>" />
|
397 | 404 | </Parameters>
|
398 | 405 | <Docs>
|
399 |
| - <param name="encoding">To be added.</param> |
400 |
| - <param name="bytes">To be added.</param> |
401 |
| - <param name="writer">To be added.</param> |
402 |
| - <summary>To be added.</summary> |
403 |
| - <returns>To be added.</returns> |
| 406 | + <param name="encoding">The encoding that represents how the data in <paramref name="bytes" /> should be decoded.</param> |
| 407 | + <param name="bytes">The span of bytes to decode.</param> |
| 408 | + <param name="writer">The buffer to which the decoded chars will be written.</param> |
| 409 | + <summary>Decodes the specified <see cref="T:System.ReadOnlySpan`1" /> to <see langword="char" />s using the specified <see cref="T:System.Text.Encoding" /> and writes the result to <paramref name="writer" />.</summary> |
| 410 | + <returns>The number of chars written to <paramref name="writer" />.</returns> |
404 | 411 | <remarks>To be added.</remarks>
|
405 | 412 | </Docs>
|
406 | 413 | </Member>
|
|
431 | 438 | </Parameter>
|
432 | 439 | </Parameters>
|
433 | 440 | <Docs>
|
434 |
| - <param name="encoding">To be added.</param> |
435 |
| - <param name="bytes">To be added.</param> |
436 |
| - <summary>To be added.</summary> |
437 |
| - <returns>To be added.</returns> |
| 441 | + <param name="encoding">The encoding that represents how the data in <paramref name="bytes" /> is encoded.</param> |
| 442 | + <param name="bytes">The sequence to decode into characters.</param> |
| 443 | + <summary>Decodes the specified <see cref="T:System.Buffers.ReadOnlySequence`1" /> into a <see cref="T:System.String" /> using the specified <see cref="T:System.Text.Encoding" />.</summary> |
| 444 | + <returns>A <see cref="T:System.String" /> which represents the decoded contents of <paramref name="bytes" />.</returns> |
438 | 445 | <remarks>To be added.</remarks>
|
439 | 446 | </Docs>
|
440 | 447 | </Member>
|
|
0 commit comments