about summary refs log tree commit diff
path: root/src/libutil/compression.hh
blob: ed3c463865c1125112b07c77f4a757b08afeb49b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "ref.hh"
#include "types.hh"

#include <string>

namespace nix {

ref<std::string> compress(const std::string & method, const std::string & in);

ref<std::string> decompress(const std::string & method, const std::string & in);

MakeError(UnknownCompressionMethod, Error);

}