memory

  1. skl2021

    Question Why Memory and ReadOnlyMemory are struct?

    Why the types Memory and ReadOnlyMemory are struct instead of class? As they generally are used on asynchronous calls and are moved to the heap.
  2. fomrat

    Does anyone understand gcAllowVeryLargeObjects?

    The docs say: "Arrays greater than 2 GB in total size are enabled on 64-bit platforms" and ".NET Framework 4.5 and later versions" and "The maximum index in any single dimension is 2,147,483,591 (0x7FFFFFC7) for byte arrays". I can create a two-dimensional [2, x] array that's 4GB in total...
Back
Top Bottom