There are no exceptions documented for Stream.Read(Span<byte>) or Stream.Write(ReadOnlySpan<byte>). These methods can throw IOException, NotSupportedException, and ObjectDisposedException.
Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.
Issue Details
There are no exceptions documented for `Stream.Read(Span)` or `Stream.Write(ReadOnlySpan)`. These methods can throw `IOException`, `NotSupportedException`, and `ObjectDisposedException`.
https://github.com/dotnet/dotnet-api-docs/blob/1fc705651a652eda664835c7c2a4985461d308b0/xml/System.IO/Stream.xml#L1953-L2009
https://github.com/dotnet/dotnet-api-docs/blob/1fc705651a652eda664835c7c2a4985461d308b0/xml/System.IO/Stream.xml#L3115-L3168
Likewise, `BinaryWriter.Write(ReadOnlySpan)`.
https://github.com/dotnet/dotnet-api-docs/blob/1fc705651a652eda664835c7c2a4985461d308b0/xml/System.IO/BinaryWriter.xml#L1836-L1883
There are no exceptions documented for
Stream.Read(Span<byte>)
orStream.Write(ReadOnlySpan<byte>)
. These methods can throwIOException
,NotSupportedException
, andObjectDisposedException
.https://github.com/dotnet/dotnet-api-docs/blob/1fc705651a652eda664835c7c2a4985461d308b0/xml/System.IO/Stream.xml#L1953-L2009
https://github.com/dotnet/dotnet-api-docs/blob/1fc705651a652eda664835c7c2a4985461d308b0/xml/System.IO/Stream.xml#L3115-L3168
Likewise,
BinaryWriter.Write(ReadOnlySpan<byte>)
.https://github.com/dotnet/dotnet-api-docs/blob/1fc705651a652eda664835c7c2a4985461d308b0/xml/System.IO/BinaryWriter.xml#L1836-L1883