Snappywrap (snappywrap v0.1.1)

View Source

A pure Elixir library to wrap a binary as uncompressed data in Snappy format.

This library does not provide compress/decompress functions, but only wraps the data in Snappy framing or block format that can be decompressed (decoded) by Snappy-compatible libraries.

This library is mostly for testing and/or low performance situations where using NIFs such as snappyrex is not required.

Summary

Functions

Wrap the data in Snappy block format.

Wrap the data in Snappy framing format.

Functions

wrap(data)

@spec wrap(binary()) :: {:ok, binary()} | {:error, String.t()}

Wrap the data in Snappy block format.

wrap_framed(data)

@spec wrap_framed(binary()) :: {:ok, binary()} | {:error, String.t()}

Wrap the data in Snappy framing format.