Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
compress.h
Go to the documentation of this file.
1
29
30#ifndef COMPRESS_H
31#define COMPRESS_H
32
33#include <stddef.h>
34#include <stdint.h>
35
36#include <porter_const.h>
37
39#define POTR_COMPRESS_HEADER_SIZE 4U
40
42#define POTR_COMPRESS_BUF_SIZE (POTR_COMPRESS_HEADER_SIZE + POTR_MAX_MESSAGE_SIZE + 64U)
43
44#ifdef __cplusplus
45extern "C"
46{
47#endif /* __cplusplus */
48
61extern int potr_compress(uint8_t *dst,
62 size_t *dst_len,
63 const uint8_t *src,
64 size_t src_len);
65
77extern int potr_decompress(uint8_t *dst,
78 size_t *dst_len,
79 const uint8_t *src,
80 size_t src_len);
81
82#ifdef __cplusplus
83}
84#endif /* __cplusplus */
85
86#endif /* COMPRESS_H */
int potr_decompress(uint8_t *dst, size_t *dst_len, const uint8_t *src, size_t src_len)
圧縮データを解凍します。
int potr_compress(uint8_t *dst, size_t *dst_len, const uint8_t *src, size_t src_len)
データを圧縮します。
通信ライブラリの定数ファイル。