1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-11 14:50:24 +08:00

fix(file): base16384_decode_fd_detailed

This commit is contained in:
源文雨
2024-04-05 00:48:13 +09:00
parent 7c8080d115
commit cde0cacd07
4 changed files with 31 additions and 19 deletions

View File

@@ -42,8 +42,12 @@ enum base16384_err_t {
*/
typedef enum base16384_err_t base16384_err_t;
#define _BASE16384_ENCBUFSZ (BUFSIZ*1024/7*7)
#define _BASE16384_DECBUFSZ (BUFSIZ*1024/8*8)
#ifndef BASE16384_BUFSZ_FACTOR
#define BASE16384_BUFSZ_FACTOR (1024)
#endif
#define _BASE16384_ENCBUFSZ ((BUFSIZ*BASE16384_BUFSZ_FACTOR)/7*7)
#define _BASE16384_DECBUFSZ ((BUFSIZ*BASE16384_BUFSZ_FACTOR)/8*8)
#define BASE16384_ENCBUFSZ (_BASE16384_ENCBUFSZ+16)
#define BASE16384_DECBUFSZ (_BASE16384_DECBUFSZ+16)