apache / apache/arrow-dotnet

Use System.Runtime.InteropServices.NativeMemory on modern .NET

Open
#99 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
39
Forks
30
Avg merge
1d 9h
Merged PRs (30d)
16

Description

### Describe the enhancement requested

Use `System.Runtime.InteropServices.NativeMemory` on modern .NET. `AlignedAlloc` and `AlignedFree` seem particularly useful for Arrow buffers.

Instead of using `#if` regions to distinguish between flavors of .NET, a better approach might be to create a `NativeMemory`-compatible wrapper for downlevel versions that front-ends something like the existing code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.