Skip to content

Clarify GetViewAsMemory doc pinning behavior - #136

Merged
NotAdam merged 1 commit into
NotAdam:masterfrom
Aireil:docs/GetViewAsMemory
Sep 23, 2026
Merged

NotAdam merged 1 commit into
NotAdam:masterfrom
Aireil:docs/GetViewAsMemory

Conversation

@Aireil

@Aireil Aireil commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

GetPinnableReference() on an empty span returns a Unsafe.NullRef<T>(), the pinning with fixed then yields a null, and it explodes if used as described in the doc.
Unsure if the doc should be different on memory and span.

@NotAdam
NotAdam merged commit e383f83 into NotAdam:master Sep 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants