Skip to content

Commit

Permalink
fix: set max writer index on buffer view
Browse files Browse the repository at this point in the history
  • Loading branch information
mworzala committed Dec 14, 2024
1 parent fd442c3 commit 5e1b2c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public final class PolarBufferAccessWidener {
// this buffer to free the backing data. We will later update the address.
var viewBuffer = new NetworkBufferImpl(-1, length, 0, 0, null, impl(buffer).registries);
setAddress(impl(viewBuffer), getAddress(impl(buffer)) + start);
viewBuffer.writeIndex(length);
viewBuffer.readOnly();
return viewBuffer;
}
Expand Down

0 comments on commit 5e1b2c7

Please sign in to comment.