Skip to content

Commit

Permalink
Recreate buffer correctly on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jan 21, 2025
1 parent 32ffa5e commit 2f3da6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bindings-csharp/Runtime/Internal/ITable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public IEnumerator<T> GetEnumerator()
// The `buffer_len` will have been updated with the necessary size.
case Errno.BUFFER_TOO_SMALL:
ArrayPool<byte>.Shared.Return(buffer);
buffer = ArrayPool<byte>.Shared.Rent((int)buffer_len);
break;
default:
ret.Check();
Expand Down

0 comments on commit 2f3da6e

Please sign in to comment.