tcompress-none.c - dedup - data deduplication program
HTML git clone git://bitreich.org/dedup/ git://hg6vgqziawt5s4dj.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
tcompress-none.c (595B)
---
1 #include <sys/types.h>
2
3 #include <stdint.h>
4 #include <string.h>
5
6 #include "blake2.h"
7 #include "dedup.h"
8
9 int
10 none_init(struct compr_ctx *ctx)
11 {
12 return 0;
13 }
14
15 size_t
16 none_size(struct compr_ctx *ctx, size_t n)
17 {
18 return n;
19 }
20
21 size_t
22 none_compr(struct compr_ctx *ctx, const void *in, void *out,
23 size_t insize, size_t outsize)
24 {
25 memcpy(out, in, insize);
26 return insize;
27 }
28
29 size_t
30 none_decompr(struct compr_ctx *ctx, const void *in, void *out,
31 size_t insize, size_t outsize)
32 {
33 memcpy(out, in, insize);
34 return insize;
35 }
36
37 int
38 none_final(struct compr_ctx *ctx)
39 {
40 return 0;
41 }