public class ZstdUtils extends Object
Constructor and Description |
---|
ZstdUtils() |
Modifier and Type | Method and Description |
---|---|
static TempByteArray |
zstdCompress(byte[] uncompressedData)
Compresses the given byte array.
|
static TempByteArray |
zstdCompress(io.airlift.compress.zstd.ZstdCompressor compressor,
byte[] uncompressedData)
Compresses the given byte array.
|
static byte[] |
zstdDecompress(byte[] compressedByteArray,
int uncompressedLength)
Decompresses the given byte array.
|
static byte[] |
zstdDecompress(io.airlift.compress.zstd.ZstdDecompressor decompressor,
byte[] compressedByteArray,
int uncompressedLength)
Decompresses the given byte array.
|
public static byte[] zstdDecompress(byte[] compressedByteArray, int uncompressedLength)
compressedByteArray
- The compressed byte array.uncompressedLength
- The uncompressed length.public static byte[] zstdDecompress(io.airlift.compress.zstd.ZstdDecompressor decompressor, byte[] compressedByteArray, int uncompressedLength)
decompressor
- The decompressor to use.compressedByteArray
- The compressed byte array.uncompressedLength
- The uncompressed length.public static TempByteArray zstdCompress(byte[] uncompressedData)
uncompressedData
- The uncompressed data.public static TempByteArray zstdCompress(io.airlift.compress.zstd.ZstdCompressor compressor, byte[] uncompressedData)
compressor
- The compressor to use.uncompressedData
- The uncompressed data.Copyright © 2021. All rights reserved.