Skip to content

Commit

Permalink
rewind outBuffer before it is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-puligundla committed Mar 21, 2023
1 parent 1f25a9a commit 7482a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private ByteBuffer uncompressOrder0Way4(final ByteBuffer inBuffer, final ByteBuf
break;
}

outBuffer.position(0);
outBuffer.rewind();
return outBuffer;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private ByteBuffer uncompressOrder0WayN(
remSize --;
reverseIndex ++;
}
outBuffer.position(0);
outBuffer.rewind();
return outBuffer;
}

Expand Down

0 comments on commit 7482a72

Please sign in to comment.