-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "algo-zlib.h" | ||
|
||
#include "../lib/snappy/snappy-c.h" | ||
|
||
void mysnappy_init() | ||
{ | ||
} | ||
|
||
void mysnappy_compress(uint8_t *input, size_t insize, uint8_t *output, size_t *outsize) | ||
{ | ||
snappy_compress(input, insize, output, outsize); | ||
} | ||
|
||
void mysnappy_uncompress(uint8_t *input, size_t insize, uint8_t *output, size_t *outsize) | ||
{ | ||
snappy_uncompress(input, insize, output, outsize); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef __ALGO_SNAPPY_H__ | ||
#define __ALGO_SNAPPY_H__ | ||
|
||
#include "pico/stdlib.h" | ||
|
||
void mysnappy_init(); | ||
void mysnappy_compress(uint8_t* input, size_t insize, uint8_t* output, size_t* outsize); | ||
void mysnappy_uncompress(uint8_t* input, size_t insize, uint8_t* output, size_t* outsize); | ||
|
||
#endif // __ALGO_SNAPPY_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters