dotnet / dotnet/dotnet-api-docs
This method is not safe?
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Typo
### Description
It says "This method is not safe." Yikes, what does that mean exactly? I assume it's a typo -- I assume it means to say "not thread-safe" -- but that's also a weird thing to say about a method that's copying memory.. obviously no mem-copy operation is thread-safe, if there are other threads modifying that memory.
There are other errors here.. it says if "`array` is not large enough to contain `count` of structures (starting from `position`)". I believe it means to say "starting from `offset`".
I came here, looking for clarification on the return value when hitting the end of the accessor .. but that's pretty unclear, I'll just have to test it.
### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.io.unmanagedmemoryaccessor.readarray?view=netframework-4.8&devlangs=csharp&f1url=%3FappId%3DDev17IDEF1%26l%3DEN-US%26k%3Dk(System.IO.UnmanagedMemoryAccessor.ReadArray%60%601);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.8);k(DevLang-csharp)%26rd%3Dtrue
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.IO/UnmanagedMemoryAccessor.xml
### Document Version Independent Id
74f2103a-0012-151b-4019-b12421cf56a3
### Platform Id
09137589-dc72-efa3-27df-5494fa3caf68
### Article author
@dotnet-bot
Contributor guide
Assessment
This issue has not been assessed yet.