ZstdWrapper

flatgraph.storage.ZstdWrapper
object ZstdWrapper

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class JniInvocationException(message: String, cause: Option[Throwable]) extends RuntimeException

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[A](fun: => A): A

zstd-jni ships system libraries that are being unpacked, loaded and executed from the system tmp directory. If that fails we get a rather obscure error message - this wrapper adds a check if the tmp dir is executable, and enhances the error message if the zstd invocation fails.

zstd-jni ships system libraries that are being unpacked, loaded and executed from the system tmp directory. If that fails we get a rather obscure error message - this wrapper adds a check if the tmp dir is executable, and enhances the error message if the zstd invocation fails.

This is where zstd-jni loads the system library: https://github.com/luben/zstd-jni/blob/9b08f1d0cdcf3b12b7a307cbba3d9f195149250b/src/main/java/com/github/luben/zstd/util/Native.java#L71

Attributes