@@ -13,10 +13,10 @@ public class RangeDecode {
13
13
private static final ByteBuffer EMPTY_BUFFER = ByteBuffer .allocate (0 );
14
14
15
15
public ByteBuffer uncompress (final ByteBuffer inBuffer ) {
16
- return uncompressStream (inBuffer , 0 );
16
+ return uncompress (inBuffer , 0 );
17
17
}
18
18
19
- public ByteBuffer uncompressStream (final ByteBuffer inBuffer , int outSize ) {
19
+ public ByteBuffer uncompress (final ByteBuffer inBuffer , int outSize ) {
20
20
if (inBuffer .remaining () == 0 ) {
21
21
return EMPTY_BUFFER ;
22
22
}
@@ -61,7 +61,7 @@ public ByteBuffer uncompressStream(final ByteBuffer inBuffer, int outSize) {
61
61
if (rangeParams .isCAT ()){
62
62
byte [] data = new byte [outSize ];
63
63
inBuffer .get ( data ,0 , outSize );
64
- return ByteBuffer .wrap (data );
64
+ outBuffer = ByteBuffer .wrap (data );
65
65
} else if (rangeParams .isExternalCompression ()){
66
66
byte [] extCompressedBytes = new byte [inBuffer .remaining ()];
67
67
int extCompressedBytesIdx = 0 ;
@@ -297,7 +297,7 @@ private ByteBuffer decodeStripe(ByteBuffer inBuffer, final int outSize){
297
297
ulen [j ]++;
298
298
}
299
299
300
- T [j ] = uncompressStream (inBuffer , ulen [j ]);
300
+ T [j ] = uncompress (inBuffer , ulen [j ]);
301
301
}
302
302
303
303
// Transpose
0 commit comments