dotnet / dotnet/dotnet-api-docs
How to allocate 2 or more GB ?
- Lenguaje dominante
- C#
- Estrellas
- 949
- Forks
- 1.7k
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 52
Descripción
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**
Guía de contribución
Línea de trabajo
Comienza con xml/System.Runtime.InteropServices/Marshal.xml y la página de referencia vinculada de Marshal.AllocCoTaskMem(Int32). Verifica si la limitación de Int32 informada es una discrepancia de la documentación o una solicitud de diseño de la API, y consulta las directrices del repositorio para realizar cambios en la referencia de la API. Se considera terminado cuando la documentación refleja correctamente la API compatible o el issue se deriva como una solicitud de cambio de la API.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100