Skip to content

[cdac] Add helper methods to Target for reading UTF-8/16 strings - #106483

Merged
elinor-fung merged 2 commits into
dotnet:mainfrom
elinor-fung:cdac-target-read-string
Aug 19, 2024
Merged

elinor-fung merged 2 commits into
dotnet:mainfrom
elinor-fung:cdac-target-read-string

Conversation

@elinor-fung

Copy link
Copy Markdown
Member

Follow-up from #106358 (comment)

Add ReadUtf8String and ReadUtf16String to Target. For ReadUtf16String, it reads in target endianness, but does not specify target endianness in its name - I think this is consistent with all the other Read* functions on Target which read in target endianness.

I did not add a ReadUTF16MetadataString / ReadUtf16StringMetadataEndianness in this change, since with the switch to synthesize a ecma-335 image and just use MetadataReader, I don't think we have a current use case.

@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 15, 2024
@elinor-fung elinor-fung added area-Diagnostics-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Aug 15, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Comment thread src/native/managed/cdacreader/src/Target.cs Outdated
Comment thread src/native/managed/cdacreader/src/Target.cs Outdated
@elinor-fung
elinor-fung merged commit b6bfc5a into dotnet:main Aug 19, 2024
@elinor-fung
elinor-fung deleted the cdac-target-read-string branch August 19, 2024 20:34
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants