Commit edda0ca
committed
Use Marshal.PtrToStringUTF8 for modern TFMs
Replace manual byte-by-byte UTF-8 string reading with
Marshal.PtrToStringUTF8 on netstandard2.1+ and net5.0+.
Keeps the manual fallback for older targets (netstandard1.1,
netstandard2.0, net40, net471, UWP, legacy Xamarin).1 parent 8d68fdd commit edda0ca
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| 170 | + | |
| 171 | + | |
167 | 172 | | |
168 | 173 | | |
169 | | - | |
| 174 | + | |
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
| |||
0 commit comments