Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-puligundla committed Oct 17, 2022
1 parent 313e28c commit 4199d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ public ByteBuffer compress(final ByteBuffer inBuffer, final RANSNx16Params ransN
return EMPTY_BUFFER;
}
final ByteBuffer outBuffer = allocateOutputBuffer(inBuffer.remaining());
final int formatFlags = ransNx16Params.getFormatFlags() & 0xFF;
final int formatFlags = ransNx16Params.getFormatFlags();
outBuffer.put((byte) (formatFlags)); // one byte for formatFlags

// TODO: add methods to handle various flags

// NoSize
if (!ransNx16Params.isNosz()) {
// original size is not recorded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ORDER getOrder() {
}

public int getFormatFlags(){
// Least significant 7 bits of the format
// first byte of the encoded stream
return formatFlags & FORMAT_FLAG_MASK;
}

Expand Down

0 comments on commit 4199d7d

Please sign in to comment.