Skip to content

Commit

Permalink
debug - add decodePack on top of CAT flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-puligundla committed Mar 21, 2023
1 parent 0204e8a commit 85cc94d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class RangeDecode {
private static final ByteBuffer EMPTY_BUFFER = ByteBuffer.allocate(0);

public ByteBuffer uncompress(final ByteBuffer inBuffer) {
return uncompressStream(inBuffer, 0);
return uncompress(inBuffer, 0);
}

public ByteBuffer uncompressStream(final ByteBuffer inBuffer, int outSize) {
public ByteBuffer uncompress(final ByteBuffer inBuffer, int outSize) {
if (inBuffer.remaining() == 0) {
return EMPTY_BUFFER;
}
Expand Down Expand Up @@ -61,7 +61,7 @@ public ByteBuffer uncompressStream(final ByteBuffer inBuffer, int outSize) {
if (rangeParams.isCAT()){
byte[] data = new byte[outSize];
inBuffer.get( data,0, outSize);
return ByteBuffer.wrap(data);
outBuffer = ByteBuffer.wrap(data);
} else if (rangeParams.isExternalCompression()){
byte[] extCompressedBytes = new byte[inBuffer.remaining()];
int extCompressedBytesIdx = 0;
Expand Down Expand Up @@ -297,7 +297,7 @@ private ByteBuffer decodeStripe(ByteBuffer inBuffer, final int outSize){
ulen[j]++;
}

T[j] = uncompressStream(inBuffer, ulen[j]);
T[j] = uncompress(inBuffer, ulen[j]);
}

// Transpose
Expand Down

0 comments on commit 85cc94d

Please sign in to comment.