From 2f3da6eb643c270182fd438487c18607f70583a9 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Mon, 23 Dec 2024 14:20:16 +0000 Subject: [PATCH] Recreate buffer correctly on resize --- crates/bindings-csharp/Runtime/Internal/ITable.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bindings-csharp/Runtime/Internal/ITable.cs b/crates/bindings-csharp/Runtime/Internal/ITable.cs index e3f95f0e5c8..dec1ec9af51 100644 --- a/crates/bindings-csharp/Runtime/Internal/ITable.cs +++ b/crates/bindings-csharp/Runtime/Internal/ITable.cs @@ -47,6 +47,7 @@ public IEnumerator GetEnumerator() // The `buffer_len` will have been updated with the necessary size. case Errno.BUFFER_TOO_SMALL: ArrayPool.Shared.Return(buffer); + buffer = ArrayPool.Shared.Rent((int)buffer_len); break; default: ret.Check();