Skip to content

Why is System.SpanHelpers || new ReadOnlySpan<T>(ref T, int length) internal? #92619

Answered by stephentoub
karakasa asked this question in General
Discussion options

You must be logged in to vote

new ReadOnlySpan(ref T, int length) is internal so I cannot create a ROS

You want MemoryMarshal.CreateReadOnlySpan.

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants