|Constructor and Description|
|Modifier and Type||Method and Description|
Decompresses the given
The difference between this method and
public BufferDecompressor(int bufferSize, String factoryName)
public Buffer decompressToIntermediateBuffer(Buffer buffer)
BlockDecompressor. The decompressed data will be stored in the intermediate buffer of this
BufferDecompressorand returned to the caller. The caller must guarantee that the returned
Bufferhas been freed when calling the method next time.
Notes that the decompression will always start from offset 0 to the size of the input
@VisibleForTesting public Buffer decompressToOriginalBuffer(Buffer buffer)
decompressToIntermediateBuffer(Buffer)is that this method copies the decompressed data to the input
Bufferstarting from offset 0.
The caller must guarantee that the input
Buffer is writable and there's enough
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.