git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / base85.h
| 1 | #ifndef BASE85_H |
| 2 | #define BASE85_H |
| 3 | |
| 4 | /* |
| 5 | * We pick 52, a multiple of 4 so there are no partial groups and it |
| 6 | * fits in the A-Za-z length prefix encoding. |
| 7 | */ |
| 8 | #define BASE85_CHUNK_SIZE 52 |
| 9 | |
| 10 | typedef void each_encoded_line_fn(char *line, int len, void *cb_data); |
| 11 | |
| 12 | int decode_85(char *dst, const char *line, int linelen); |
| 13 | void chunk_and_encode85(const unsigned char *data, unsigned long len, |
| 14 | each_encoded_line_fn output, void *output_data); |
| 15 | |
| 16 | #endif /* BASE85_H */ |