Open steveharter opened 1 month ago
Missing information
Like other methods, such as Read, this can throw ArgumentOutOfRangeException when "source is smaller than T's length in bytes".
I did not check to see if other methods on MemoryMarshal have missing exception information.
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.memorymarshal.asref?view=net-8.0#system-runtime-interopservices-memorymarshal-asref-1(system-span((system-byte)))
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Runtime.InteropServices/MemoryMarshal.xml
7105394a-89da-4a33-ebd6-141172663867
@dotnet-bot
Type of issue
Missing information
Description
Like other methods, such as Read, this can throw ArgumentOutOfRangeException when "source is smaller than T's length in bytes".
I did not check to see if other methods on MemoryMarshal have missing exception information.
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.memorymarshal.asref?view=net-8.0#system-runtime-interopservices-memorymarshal-asref-1(system-span((system-byte)))
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Runtime.InteropServices/MemoryMarshal.xml
Document Version Independent Id
7105394a-89da-4a33-ebd6-141172663867
Article author
@dotnet-bot