Skip to content

Commit

Permalink
update position correctly after reading fewer than length bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellis committed Sep 29, 2023
1 parent 6ac3286 commit b41ac20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private void read(byte[] bytes, int offset, int count) {
try {
buffer.memory().getBytes(position, bytes, offset, count);
} finally {
position += bytes.length;
position += count;
}
}

Expand Down

0 comments on commit b41ac20

Please sign in to comment.