LDM Notes for April 18th, 2022 #6052
MadsTorgersen
started this conversation in
LDM Notes
Replies: 1 comment
-
Importantly, the null terminator is not part of the contents of the string, or included in length calculations (the same as with strings), it's simply something the compiler guarantees for how the data is laid out in memory. This allows interop with byte* accepting apis that look for the null to know where to stop, while not affecting any apis that know the content length and work with that expecting the content to end on the last byte of actual utf8 data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-04-18.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions