Skip to content

Commit

Permalink
limit
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzl25 committed Feb 7, 2024
1 parent 4284340 commit 1bcc7e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/core/src/test/org/apache/orc/impl/TestBrotli.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ public void testDirectDecompress() {
// write bytes to heap buffer.
assertTrue(brotliCodec.compress(in, out, null,
brotliCodec.getDefaultOptions()));
int position = out.position();
out.flip();
// copy heap buffer to direct buffer.
directOut.put(out.array());
directOut.flip();
directOut.limit(position);

brotliCodec.decompress(directOut, directResult);

Expand Down

0 comments on commit 1bcc7e9

Please sign in to comment.