dotnet / dotnet/dotnet-api-docs
How to allocate 2 or more GB ?
- Langage dominant
- C#
- Étoiles
- 949
- Forks
- 1.7k
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 52
Description
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**
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par xml/System.Runtime.InteropServices/Marshal.xml et la page de référence liée de Marshal.AllocCoTaskMem(Int32). Vérifiez si la limitation Int32 signalée est une divergence de la documentation ou une demande de conception de l’API, et consultez les instructions du dépôt concernant les modifications de la référence de l’API. La tâche est considérée comme terminée lorsque la documentation reflète correctement l’API prise en charge ou que l’issue est orientée comme une demande de modification de l’API.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100