1 Star 0 Fork 33

李想/php-beast

forked from liexusong/php-beast 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
file_handler.h 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
xusong.lie 提交于 2017-03-20 12:46 . enable big file
#ifndef __FILE_HANDLER_H
#define __FILE_HANDLER_H
#include <stdio.h>
#define BEAST_FILE_HANDLER_FP 1
#define BEAST_FILE_HANDLER_FD 2
struct file_handler {
char *name;
int type;
void *ctx;
int (*check)();
int (*open)(struct file_handler *self);
int (*write)(struct file_handler *self, char *buf, int size);
int (*rewind)(struct file_handler *self);
int (*get_fd)(struct file_handler *self);
FILE *(*get_fp)(struct file_handler *self);
int (*destroy)(struct file_handler *self);
};
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/li-xiang007/php-beast.git
git@gitee.com:li-xiang007/php-beast.git
li-xiang007
php-beast
php-beast
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385