Skip to content

Span<T> reinterpret cast #76169

Answered by PhilPJL
PhilPJL asked this question in General
Sep 26, 2022 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Ok found it. Span<int> t = MemoryMarshal.Cast<byte, int>(s);

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by PhilPJL
Comment options

You must be logged in to vote
2 replies
@tannergooding
Comment options

@PhilPJL
Comment options

Comment options

You must be logged in to vote
1 reply
@stephentoub
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants