
com.github.luben.zstd.NoPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zstd-jni Show documentation
Show all versions of zstd-jni Show documentation
JNI bindings for Zstd native library that provides fast and high compression lossless algorithm for Java and all JVM languages.
package com.github.luben.zstd;
import java.nio.ByteBuffer;
/**
* Implementation of `BufferPool` that does not recycle buffers.
*/
public class NoPool implements BufferPool {
public static final BufferPool INSTANCE = new NoPool();
private NoPool() {
}
@Override
public ByteBuffer get(int capacity) {
return ByteBuffer.allocate(capacity);
}
@Override
public void release(ByteBuffer buffer) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy