|
850 | 850 | <Docs>
|
851 | 851 | <param name="value">The value to write.</param>
|
852 | 852 | <summary>Implements compressed unsigned integer encoding as defined by ECMA-335-II chapter 23.2: Blobs and signatures.</summary>
|
853 |
| - <remarks>To be added.</remarks> |
| 853 | + <remarks> |
| 854 | + <format type="text/markdown"><![CDATA[ |
| 855 | +
|
| 856 | +## Remarks |
| 857 | +
|
| 858 | +If the value lies between 0 (0x00) and 127 (0x7F), inclusive, encode as a one-byte integer (bit 7 is clear, value held in bits 6 through 0). |
| 859 | +
|
| 860 | +If the value lies between 28 (0x80) and 214 - 1 (0x3FFF), inclusive, encode as a 2-byte integer with bit 15 set, bit 14 clear (value held in bits 13 through 0). |
| 861 | +
|
| 862 | +Otherwise, encode as a 4-byte integer, with bit 31 set, bit 30 set, bit 29 clear (value held in bits 28 through 0). |
| 863 | +
|
| 864 | + ]]></format> |
| 865 | + </remarks> |
854 | 866 | <exception cref="T:System.ArgumentOutOfRangeException">
|
855 | 867 | <paramref name="value" /> can't be represented as a compressed unsigned integer.</exception>
|
856 | 868 | <exception cref="T:System.InvalidOperationException">The builder is not writable; it has been linked with another one.</exception>
|
|
880 | 892 | <Docs>
|
881 | 893 | <param name="value">The value to write.</param>
|
882 | 894 | <summary>Implements compressed signed integer encoding as defined by ECMA-335-II chapter 23.2: Blobs and signatures.</summary>
|
883 |
| - <remarks>To be added.</remarks> |
| 895 | + <remarks> |
| 896 | + <format type="text/markdown"><![CDATA[ |
| 897 | +
|
| 898 | +## Remarks |
| 899 | +
|
| 900 | +If the value lies between -64 (0xFFFFFFC0) and 63 (0x3F), inclusive, encode as a one-byte integer: bit 7 clear, value bits 5 through 0 held in bits 6 through 1, sign bit (value bit 31) in bit 0. |
| 901 | +
|
| 902 | +If the value lies between -8192 (0xFFFFE000) and 8191 (0x1FFF), inclusive, encode as a two-byte integer: 15 set, bit 14 clear, value bits 12 through 0 held in bits 13 through 1, sign bit(value bit 31) in bit 0. |
| 903 | +
|
| 904 | +If the value lies between -268435456 (0xF000000) and 268435455 (0x0FFFFFFF), inclusive, encode as a four-byte integer: 31 set, 30 set, bit 29 clear, value bits 27 through 0 held in bits 28 through 1, sign bit(value bit 31) in bit 0. |
| 905 | +
|
| 906 | + ]]></format> |
| 907 | + </remarks> |
884 | 908 | <exception cref="T:System.ArgumentOutOfRangeException">
|
885 | 909 | <paramref name="value" /> can't be represented as a compressed signed integer.</exception>
|
886 | 910 | <exception cref="T:System.InvalidOperationException">The builder is not writable; it has been linked with another one.</exception>
|
|
1341 | 1365 | <Docs>
|
1342 | 1366 | <param name="value">To be added.</param>
|
1343 | 1367 | <summary>Writes a string in SerString format (see ECMA-335-II 23.3 Custom attributes).</summary>
|
1344 |
| - <remarks>To be added.</remarks> |
| 1368 | + <remarks> |
| 1369 | + <format type="text/markdown"><![CDATA[ |
| 1370 | +
|
| 1371 | +## Remarks |
| 1372 | +
|
| 1373 | +The string is UTF8 encoded and prefixed by the its size in bytes. |
| 1374 | +
|
| 1375 | +A `null` string is represented as a single byte 0xFF. |
| 1376 | +
|
| 1377 | + ]]></format> |
| 1378 | + </remarks> |
1345 | 1379 | <exception cref="T:System.InvalidOperationException">Builder is not writable, it has been linked with another one.</exception>
|
1346 | 1380 | </Docs>
|
1347 | 1381 | </Member>
|
|
1537 | 1571 | <Docs>
|
1538 | 1572 | <param name="value">To be added.</param>
|
1539 | 1573 | <summary>Writes a string in User String (#US) heap format (see ECMA-335-II 24.2.4 #US and #Blob heaps).</summary>
|
1540 |
| - <remarks>To be added.</remarks> |
| 1574 | + <remarks> |
| 1575 | + <format type="text/markdown"><![CDATA[ |
| 1576 | +
|
| 1577 | +## Remarks |
| 1578 | +
|
| 1579 | +The string is UTF16 encoded and prefixed by the its size in bytes. |
| 1580 | +
|
| 1581 | +This final byte holds the value 1 if and only if any UTF16 character within the string has any bit set in its top byte, or its low byte is any of the following: 0x01-0x08, 0x0E-0x1F, 0x27, 0x2D, 0x7F. Otherwise, it holds 0. |
| 1582 | +
|
| 1583 | +The 1 signifies Unicode characters that require handling beyond that normally provided for 8-bit encoding sets. |
| 1584 | +
|
| 1585 | + ]]></format> |
| 1586 | + </remarks> |
1541 | 1587 | <exception cref="T:System.InvalidOperationException">Builder is not writable, it has been linked with another one.</exception>
|
1542 | 1588 | </Docs>
|
1543 | 1589 | </Member>
|
|
0 commit comments