Skip to content

This method is not safe? #12558

@arithex

Description

@arithex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IOuntriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions