This is an automated email from the ASF dual-hosted git repository.
CurtHagenlocher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-dotnet.git
The following commit(s) were added to refs/heads/main by this push:
new 72141b1 Update ArrowBuffer.cs (#369)
72141b1 is described below
commit 72141b1990cc85c071404a2faf13aa3794b899f3
Author: kronic <[email protected]>
AuthorDate: Sun Jun 14 18:51:52 2026 +0300
Update ArrowBuffer.cs (#369)
## What's Changed
Remove allocation ArrowBuffer.Empty
---
src/Apache.Arrow/ArrowBuffer.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Apache.Arrow/ArrowBuffer.cs b/src/Apache.Arrow/ArrowBuffer.cs
index 7b8ecc7..d3cd939 100644
--- a/src/Apache.Arrow/ArrowBuffer.cs
+++ b/src/Apache.Arrow/ArrowBuffer.cs
@@ -25,7 +25,7 @@ namespace Apache.Arrow
private readonly SharedMemoryHandle _handle;
private readonly ReadOnlyMemory<byte> _memory;
- public static ArrowBuffer Empty => new ArrowBuffer(Memory<byte>.Empty);
+ public static ArrowBuffer Empty { get; } = new
ArrowBuffer(Memory<byte>.Empty);
public ArrowBuffer(ReadOnlyMemory<byte> data)
{