Skip to content

Commit

Permalink
fix: Large file write in WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed May 4, 2021
1 parent a24b946 commit 21fd698
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public override async Task WriteAsync(byte[] buffer, int offset, int count, Canc
var pinnedData = handle.AddrOfPinnedObject();
await WebAssemblyRuntime.InvokeAsync($"{JsType}.writeAsync('{_streamId}', {pinnedData}, {offset}, {count}, {Position})");
_length += Math.Max(Position + count, Length);
Position += count;
}
finally
{
Expand Down

0 comments on commit 21fd698

Please sign in to comment.