public class LZ4Compressor extends Object
| Constructor and Description |
|---|
LZ4Compressor() |
| Modifier and Type | Method and Description |
|---|---|
static long |
compress(BaseDeviceMemoryBuffer input,
CompressionType inputType,
long chunkSize,
BaseDeviceMemoryBuffer tempBuffer,
BaseDeviceMemoryBuffer output,
Cuda.Stream stream)
Compress a buffer with LZ4.
|
static void |
compressAsync(HostMemoryBuffer compressedSizeOutputBuffer,
BaseDeviceMemoryBuffer input,
CompressionType inputType,
long chunkSize,
BaseDeviceMemoryBuffer tempBuffer,
BaseDeviceMemoryBuffer output,
Cuda.Stream stream)
Asynchronously compress a buffer with LZ4.
|
static long |
getOutputSize(BaseDeviceMemoryBuffer input,
CompressionType inputType,
long chunkSize,
BaseDeviceMemoryBuffer tempBuffer)
Calculate the amount of output storage space required to compress a buffer.
|
static long |
getTempSize(BaseDeviceMemoryBuffer input,
CompressionType inputType,
long chunkSize)
Calculate the amount of temporary storage space required to compress a buffer.
|
public static long getTempSize(BaseDeviceMemoryBuffer input, CompressionType inputType, long chunkSize)
input - buffer to compressinputType - type of data within the bufferchunkSize - compression chunk size to usepublic static long getOutputSize(BaseDeviceMemoryBuffer input, CompressionType inputType, long chunkSize, BaseDeviceMemoryBuffer tempBuffer)
input - buffer to compressinputType - type of data within the bufferchunkSize - compression chunk size to usetempBuffer - temporary storage spacepublic static long compress(BaseDeviceMemoryBuffer input, CompressionType inputType, long chunkSize, BaseDeviceMemoryBuffer tempBuffer, BaseDeviceMemoryBuffer output, Cuda.Stream stream)
input - buffer to compressinputType - type of data within the bufferchunkSize - compression chunk size to usetempBuffer - temporary storage spaceoutput - buffer that will contain the compressed resultstream - CUDA stream to usepublic static void compressAsync(HostMemoryBuffer compressedSizeOutputBuffer, BaseDeviceMemoryBuffer input, CompressionType inputType, long chunkSize, BaseDeviceMemoryBuffer tempBuffer, BaseDeviceMemoryBuffer output, Cuda.Stream stream)
compressedSizeOutputBuffer - host memory where the compressed output size will be storedinput - buffer to compressinputType - type of data within the bufferchunkSize - compression chunk size to usetempBuffer - temporary storage spaceoutput - buffer that will contain the compressed resultstream - CUDA stream to useCopyright © 2021. All rights reserved.