dotnet / dotnet/dotnet-api-docs

How to allocate 2 or more GB ?

オープン
#892 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area-System.Runtime.InteropServices dotnet-api/prod Pri2 untriaged
主要言語
C#
スター
950
フォーク
1.7k
平均マージ
2日 19時間
マージ済み PR(30日)
52

説明

The size parameter to the allocation is defined as an int. This precludes allocations of 2 or more GB in a single call. At the very least, the 'int cb' should have been a 'uint cb'.

I would also argue that in 64-bit addressing it should be a long (or a ulong)... welcome to the 64-bit world.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: ec1aaf4e-d08b-7d7b-a2bb-6e5cdbba5552
* Version Independent ID: 62bc5f30-97ac-bc21-47e2-7c4faffe602e
* Content: [Marshal.AllocCoTaskMem(Int32) Method (System.Runtime.InteropServices)](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal.alloccotaskmem?view=netframework-4.7.2)
* Content Source: [xml/System.Runtime.InteropServices/Marshal.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Runtime.InteropServices/Marshal.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

xml/System.Runtime.InteropServices/Marshal.xml と、リンクされている Marshal.AllocCoTaskMem(Int32) のリファレンス ページから始めます。報告された Int32 の制限がドキュメントの不一致なのか、API 設計の要望なのかを確認し、API リファレンスの変更に関するリポジトリのガイダンスを確認します。ドキュメントがサポートされている API を正確に反映しているか、issue が API 変更リクエストとして振り分けられれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
documentation
issue の種類
ドキュメント
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。