public class JBlosc extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
OVERHEAD |
| Constructor and Description |
|---|
JBlosc() |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
cbufferComplib(Buffer cbuffer) |
void |
cbufferMetainfo(Buffer cbuffer,
com.sun.jna.ptr.NativeLongByReference typesize,
com.sun.jna.ptr.IntByReference flags) |
BufferSizes |
cbufferSizes(ByteBuffer cbuffer) |
void |
cbufferVersions(Buffer cbuffer,
com.sun.jna.ptr.IntByReference version,
com.sun.jna.ptr.IntByReference versionlz) |
String |
compcodeToCompname(int compcode)
Call to the JNA blosc_compcode_to_compname
|
int |
compnameToCompcode(String compname)
Call to the JNA blosc_compname_to_compcode
|
int |
compress(int compressionLevel,
int shuffleType,
int typeSize,
ByteBuffer src,
long srcLength,
ByteBuffer dest,
long destLength) |
static int |
compressCtx(int compressionLevel,
int shuffleType,
int typeSize,
ByteBuffer src,
long srcLength,
ByteBuffer dest,
long destLength,
String compressorName,
int blockSize,
int numThreads) |
int |
decompress(Buffer src,
Buffer dest,
long destSize) |
static int |
decompressCtx(Buffer src,
Buffer dest,
long destSize,
int numThreads) |
void |
destroy()
Call to the JNA blosc_destroy()
|
void |
freeResources()
Call to the JNA blosc_free_resources throws an unchecked RuntimeException
if there are problems freeing resources
|
int |
getBlocksize()
Call to the JNA blosc_get_blocksize method
|
String |
getCompressor()
Call to the JNA blosc_get_compressor
|
int |
getNumThreads()
call to the JNA blosc_get_nthreads
|
String |
getVersionString()
Call to the JNA blosc_get_version_string
|
void |
init()
Call to the JNA blosc_init()
|
String |
listCompressors()
Call the JNA blosc_list_compressors
|
static void |
setBlocksize(long blocksize) |
void |
setCompressor(String compname)
Call to the JNA blosc_set_compressor
|
void |
setNumThreads(int nthreads)
Call to the JNA blosc_set_nthreads
|
public static final int OVERHEAD
public void init()
public void destroy()
public void setNumThreads(int nthreads)
nthreads - public int getNumThreads()
public String listCompressors()
public void setCompressor(String compname)
compname - public String getCompressor()
public int compnameToCompcode(String compname)
compname - public String compcodeToCompname(int compcode)
compcode - public String getVersionString()
public void freeResources()
public int getBlocksize()
public static void setBlocksize(long blocksize)
public BufferSizes cbufferSizes(ByteBuffer cbuffer)
public int compress(int compressionLevel,
int shuffleType,
int typeSize,
ByteBuffer src,
long srcLength,
ByteBuffer dest,
long destLength)
public static int compressCtx(int compressionLevel,
int shuffleType,
int typeSize,
ByteBuffer src,
long srcLength,
ByteBuffer dest,
long destLength,
String compressorName,
int blockSize,
int numThreads)
public static int decompressCtx(Buffer src, Buffer dest, long destSize, int numThreads)
public void cbufferMetainfo(Buffer cbuffer, com.sun.jna.ptr.NativeLongByReference typesize, com.sun.jna.ptr.IntByReference flags)
public void cbufferVersions(Buffer cbuffer, com.sun.jna.ptr.IntByReference version, com.sun.jna.ptr.IntByReference versionlz)
Copyright © 2018. All rights reserved.