Skip to content

Commit 761a7af

Browse files
committed
More Convert Polyfills
1 parent a26849f commit 761a7af

27 files changed

Lines changed: 4142 additions & 87 deletions

apiCount.include.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
**API count: 784**
1+
**API count: 793**

api_list.include.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,25 @@
128128

129129
#### Convert
130130

131+
* `OperationStatus FromHexString(ReadOnlySpan<byte>, Span<byte>, int, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.fromhexstring?view=net-11.0#system-convert-fromhexstring(system-readonlyspan((system-byte))-system-span((system-byte))-system-int32@-system-int32@))
132+
* `byte[] FromHexString(ReadOnlySpan<byte>)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.fromhexstring?view=net-11.0#system-convert-fromhexstring(system-readonlyspan((system-byte))))
133+
* `OperationStatus FromHexString(ReadOnlySpan<char>, Span<byte>, int, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.fromhexstring?view=net-11.0#system-convert-fromhexstring(system-readonlyspan((system-char))-system-span((system-byte))-system-int32@-system-int32@))
131134
* `byte[] FromHexString(ReadOnlySpan<char>)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.fromhexstring?view=net-11.0#system-convert-fromhexstring(system-readonlyspan((system-char))))
135+
* `OperationStatus FromHexString(string, Span<byte>, int, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.fromhexstring?view=net-11.0#system-convert-fromhexstring(system-string-system-span((system-byte))-system-int32@-system-int32@))
132136
* `byte[] FromHexString(string)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.fromhexstring?view=net-11.0#system-convert-fromhexstring(system-string))
133137
* `string ToHexString(byte[], int, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tohexstring?view=net-11.0#system-convert-tohexstring(system-byte()-system-int32-system-int32))
134138
* `string ToHexString(byte[])` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tohexstring?view=net-11.0#system-convert-tohexstring(system-byte()))
135139
* `string ToHexString(ReadOnlySpan<byte>)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tohexstring?view=net-11.0#system-convert-tohexstring(system-readonlyspan((system-byte))))
136140
* `string ToHexStringLower(byte[], int, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tohexstringlower?view=net-11.0#system-convert-tohexstringlower(system-byte()-system-int32-system-int32))
137141
* `string ToHexStringLower(byte[])` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tohexstringlower?view=net-11.0#system-convert-tohexstringlower(system-byte()))
138142
* `string ToHexStringLower(ReadOnlySpan<byte>)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tohexstringlower?view=net-11.0#system-convert-tohexstringlower(system-readonlyspan((system-byte))))
139-
* `bool TryToHexString(ReadOnlySpan<byte>, Span<char>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytohexstring?view=net-11.0)
140-
* `bool TryToHexStringLower(ReadOnlySpan<byte>, Span<char>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytohexstringlower?view=net-11.0)
143+
* `bool TryFromBase64Chars(ReadOnlySpan<char>, Span<byte>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tryfrombase64chars?view=net-11.0)
144+
* `bool TryFromBase64String(string, Span<byte>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.tryfrombase64string?view=net-11.0)
145+
* `bool TryToBase64Chars(ReadOnlySpan<byte>, Span<char>, int, Base64FormattingOptions)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytobase64chars?view=net-11.0)
146+
* `bool TryToHexString(ReadOnlySpan<byte>, Span<byte>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytohexstring?view=net-11.0#system-convert-trytohexstring(system-readonlyspan((system-byte))-system-span((system-byte))-system-int32@))
147+
* `bool TryToHexString(ReadOnlySpan<byte>, Span<char>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytohexstring?view=net-11.0#system-convert-trytohexstring(system-readonlyspan((system-byte))-system-span((system-char))-system-int32@))
148+
* `bool TryToHexStringLower(ReadOnlySpan<byte>, Span<byte>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytohexstringlower?view=net-11.0#system-convert-trytohexstringlower(system-readonlyspan((system-byte))-system-span((system-byte))-system-int32@))
149+
* `bool TryToHexStringLower(ReadOnlySpan<byte>, Span<char>, int)` [reference](https://learn.microsoft.com/en-us/dotnet/api/system.convert.trytohexstringlower?view=net-11.0#system-convert-trytohexstringlower(system-readonlyspan((system-byte))-system-span((system-char))-system-int32@))
141150

142151

143152
#### DateOnly

assemblySize.include.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
| | Empty Assembly | With Polyfill | Diff | Ensure | ArgumentExceptions | StringInterpolation | Nullability |
44
|----------------|----------------|---------------|-----------|-----------|--------------------|---------------------|-------------|
5-
| netstandard2.0 | 8.0KB | 248.0KB | +240.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
6-
| netstandard2.1 | 8.5KB | 201.5KB | +193.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
7-
| net461 | 8.5KB | 254.0KB | +245.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
8-
| net462 | 7.0KB | 253.0KB | +246.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
9-
| net47 | 7.0KB | 253.0KB | +246.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
10-
| net471 | 8.5KB | 253.0KB | +244.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
11-
| net472 | 8.5KB | 251.5KB | +243.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
12-
| net48 | 8.5KB | 251.5KB | +243.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
13-
| net481 | 8.5KB | 251.5KB | +243.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
14-
| netcoreapp2.0 | 9.0KB | 227.5KB | +218.5KB | +9.0KB | +6.0KB | +9.0KB | +13.5KB |
15-
| netcoreapp2.1 | 9.0KB | 209.0KB | +200.0KB | +9.0KB | +6.5KB | +9.5KB | +14.0KB |
16-
| netcoreapp2.2 | 9.0KB | 209.0KB | +200.0KB | +9.5KB | +6.5KB | +9.5KB | +14.0KB |
17-
| netcoreapp3.0 | 9.5KB | 200.0KB | +190.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
18-
| netcoreapp3.1 | 9.5KB | 198.0KB | +188.5KB | +9.5KB | +6.5KB | +9.5KB | +14.0KB |
19-
| net5.0 | 9.5KB | 162.5KB | +153.0KB | +9.0KB | +6.0KB | +9.0KB | +13.5KB |
20-
| net6.0 | 10.0KB | 117.5KB | +107.5KB | +9.5KB | +6.5KB | +512bytes | +3.0KB |
21-
| net7.0 | 10.0KB | 87.0KB | +77.0KB | +9.5KB | +6.0KB | +512bytes | +3.5KB |
22-
| net8.0 | 9.5KB | 70.5KB | +61.0KB | +8.5KB | | +512bytes | +3.5KB |
23-
| net9.0 | 9.5KB | 36.5KB | +27.0KB | +9.0KB | | +1.0KB | +4.0KB |
5+
| netstandard2.0 | 8.0KB | 249.0KB | +241.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
6+
| netstandard2.1 | 8.5KB | 202.0KB | +193.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
7+
| net461 | 8.5KB | 255.5KB | +247.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
8+
| net462 | 7.0KB | 254.5KB | +247.5KB | +9.0KB | +6.0KB | +8.5KB | +13.5KB |
9+
| net47 | 7.0KB | 254.0KB | +247.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
10+
| net471 | 8.5KB | 254.0KB | +245.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
11+
| net472 | 8.5KB | 252.5KB | +244.0KB | +9.0KB | +6.5KB | +9.5KB | +14.0KB |
12+
| net48 | 8.5KB | 252.5KB | +244.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
13+
| net481 | 8.5KB | 253.0KB | +244.5KB | +8.5KB | +6.0KB | +9.0KB | +13.5KB |
14+
| netcoreapp2.0 | 9.0KB | 228.5KB | +219.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
15+
| netcoreapp2.1 | 9.0KB | 209.5KB | +200.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
16+
| netcoreapp2.2 | 9.0KB | 209.5KB | +200.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
17+
| netcoreapp3.0 | 9.5KB | 200.0KB | +190.5KB | +9.5KB | +6.5KB | +9.5KB | +14.0KB |
18+
| netcoreapp3.1 | 9.5KB | 198.5KB | +189.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
19+
| net5.0 | 9.5KB | 162.5KB | +153.0KB | +9.5KB | +6.5KB | +9.5KB | +14.0KB |
20+
| net6.0 | 10.0KB | 118.0KB | +108.0KB | +9.5KB | +6.5KB | +512bytes | +3.0KB |
21+
| net7.0 | 10.0KB | 87.5KB | +77.5KB | +9.5KB | +5.5KB | +512bytes | +3.5KB |
22+
| net8.0 | 9.5KB | 71.0KB | +61.5KB | +8.5KB | | +512bytes | +3.5KB |
23+
| net9.0 | 9.5KB | 37.5KB | +28.0KB | +9.0KB | | +512bytes | +3.5KB |
2424
| net10.0 | 10.0KB | 23.5KB | +13.5KB | +9.0KB | | +512bytes | +3.5KB |
2525
| net11.0 | 10.0KB | 19.0KB | +9.0KB | +9.5KB | | +1.0KB | +4.0KB |
2626

@@ -29,24 +29,24 @@
2929

3030
| | Empty Assembly | With Polyfill | Diff | Ensure | ArgumentExceptions | StringInterpolation | Nullability |
3131
|----------------|----------------|---------------|-----------|-----------|--------------------|---------------------|-------------|
32-
| netstandard2.0 | 8.0KB | 367.9KB | +359.9KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
33-
| netstandard2.1 | 8.5KB | 296.6KB | +288.1KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
34-
| net461 | 8.5KB | 374.3KB | +365.8KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
35-
| net462 | 7.0KB | 373.3KB | +366.3KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
36-
| net47 | 7.0KB | 373.1KB | +366.1KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
37-
| net471 | 8.5KB | 373.1KB | +364.6KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
38-
| net472 | 8.5KB | 370.5KB | +362.0KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
39-
| net48 | 8.5KB | 370.5KB | +362.0KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
40-
| net481 | 8.5KB | 370.5KB | +362.0KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
41-
| netcoreapp2.0 | 9.0KB | 337.2KB | +328.2KB | +16.7KB | +7.7KB | +13.9KB | +18.9KB |
42-
| netcoreapp2.1 | 9.0KB | 308.3KB | +299.3KB | +16.7KB | +8.2KB | +14.4KB | +19.4KB |
43-
| netcoreapp2.2 | 9.0KB | 308.3KB | +299.3KB | +17.2KB | +8.2KB | +14.4KB | +19.4KB |
44-
| netcoreapp3.0 | 9.5KB | 290.1KB | +280.6KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
45-
| netcoreapp3.1 | 9.5KB | 288.1KB | +278.6KB | +17.2KB | +8.2KB | +14.4KB | +19.4KB |
46-
| net5.0 | 9.5KB | 235.5KB | +226.0KB | +16.7KB | +7.7KB | +13.9KB | +18.9KB |
47-
| net6.0 | 10.0KB | 173.9KB | +163.9KB | +17.2KB | +8.2KB | +1.1KB | +3.7KB |
48-
| net7.0 | 10.0KB | 126.5KB | +116.5KB | +17.1KB | +7.4KB | +1.1KB | +4.2KB |
49-
| net8.0 | 9.5KB | 101.0KB | +91.5KB | +16.0KB | +299bytes | +1.1KB | +4.2KB |
50-
| net9.0 | 9.5KB | 53.5KB | +44.0KB | +16.5KB | | +1.6KB | +4.7KB |
32+
| netstandard2.0 | 8.0KB | 369.2KB | +361.2KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
33+
| netstandard2.1 | 8.5KB | 297.1KB | +288.6KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
34+
| net461 | 8.5KB | 376.2KB | +367.7KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
35+
| net462 | 7.0KB | 375.2KB | +368.2KB | +16.7KB | +7.7KB | +13.4KB | +18.9KB |
36+
| net47 | 7.0KB | 374.4KB | +367.4KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
37+
| net471 | 8.5KB | 374.4KB | +365.9KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
38+
| net472 | 8.5KB | 371.9KB | +363.4KB | +16.7KB | +8.2KB | +14.4KB | +19.4KB |
39+
| net48 | 8.5KB | 371.9KB | +363.4KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
40+
| net481 | 8.5KB | 372.4KB | +363.9KB | +16.2KB | +7.7KB | +13.9KB | +18.9KB |
41+
| netcoreapp2.0 | 9.0KB | 338.6KB | +329.6KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
42+
| netcoreapp2.1 | 9.0KB | 308.8KB | +299.8KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
43+
| netcoreapp2.2 | 9.0KB | 308.8KB | +299.8KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
44+
| netcoreapp3.0 | 9.5KB | 290.2KB | +280.7KB | +17.2KB | +8.2KB | +14.4KB | +19.4KB |
45+
| netcoreapp3.1 | 9.5KB | 288.7KB | +279.2KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
46+
| net5.0 | 9.5KB | 235.6KB | +226.1KB | +17.2KB | +8.2KB | +14.4KB | +19.4KB |
47+
| net6.0 | 10.0KB | 174.4KB | +164.4KB | +17.2KB | +8.2KB | +1.1KB | +3.7KB |
48+
| net7.0 | 10.0KB | 127.0KB | +117.0KB | +17.1KB | +6.9KB | +1.1KB | +4.2KB |
49+
| net8.0 | 9.5KB | 101.5KB | +92.0KB | +16.0KB | +299bytes | +1.1KB | +4.2KB |
50+
| net9.0 | 9.5KB | 54.9KB | +45.4KB | +16.5KB | | +1.1KB | +4.2KB |
5151
| net10.0 | 10.0KB | 35.8KB | +25.8KB | +16.5KB | | +1.1KB | +4.2KB |
5252
| net11.0 | 10.0KB | 28.5KB | +18.5KB | +17.0KB | | +1.6KB | +4.7KB |

0 commit comments

Comments
 (0)