dotnet / dotnet/dotnet-api-docs

GetMemory and GetSpan should mention non-zero inited buffers

Open
#10,847 2 comments 0 reactions 0 assignees View on GitHub
area-System.IO.Pipelines untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Missing information

### Description

`PipeWriter.GetMemory` and `PipeWriter.GetSpan` should explicitly call out that they do not guarantee returning buffers that have been cleared.

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.io.pipelines.pipewriter?view=net-9.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.IO.Pipelines/PipeWriter.xml

### Document Version Independent Id

4bb0d319-3f73-2acb-4044-a6b85840e0e4

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.