xrtHttpBodyFileConfigInit
初始化默认文件正文配置;输出结构可以未对齐。
void xrtHttpBodyFileConfigInit( xhttpbodyfileconfig* pConfig );
| 参数 | 说明 |
|---|---|
| xhttpbodyfileconfig* pConfig | 配置结构 |
返回:初始化默认文件正文配置;输出结构可以未对齐。
示例已编译验证
httpbodyfileconfiginit obj; xrtHttpBodyFileConfigInit(&obj);
xrtHttpBodyFileAdopt
XRT_API xhttpbody* xrtHttpBodyFileAdopt( xasyncfile* pFile, uint64 iOffset, uint64 iLength, const xhttpbodyfileconfig* pConfig );
;
返回:XRT_API xhttpbody* xrtHttpBodyFileAdopt( xasyncfile* pFile, uint64 iOffset, uint64 iLength, const xhttpbodyfileconfig* pConfig );
示例已编译验证
/* XRT_API xhttpbody* xrtHttpBodyFileAdopt( xasyncfile* pFile, uint64 iOffset, uint64 iLength, const xhttpbodyfileconfig* pConfig ); */ result = xrtHttpBodyFileAdopt();
xrtHttpBodyFileFuture
XRT_API xfuture* xrtHttpBodyFileFuture( xtaskpool* pPool, cstr sPath, const xhttpbodyfileconfig* pConfig );
;
返回:XRT_API xfuture* xrtHttpBodyFileFuture( xtaskpool* pPool, cstr sPath, const xhttpbodyfileconfig* pConfig );
示例已编译验证
/* XRT_API xfuture* xrtHttpBodyFileFuture( xtaskpool* pPool, cstr sPath, const xhttpbodyfileconfig* pConfig ); */ result = xrtHttpBodyFileFuture();
xrtHttpBodyFileRangeFuture
XRT_API xfuture* xrtHttpBodyFileRangeFuture( xtaskpool* pPool, cstr sPath, uint64 iOffset, uint64 iLength, const xhttpbodyfileconfig* pConfig );
;
返回:XRT_API xfuture* xrtHttpBodyFileRangeFuture( xtaskpool* pPool, cstr sPath, uint64 iOffset, uint64 iLength, const xhttpbodyfileconfig* pConfig );
示例已编译验证
/* XRT_API xfuture* xrtHttpBodyFileRangeFuture( xtaskpool* pPool, cstr sPath, uint64 iOffset, uint64 iLength, const xhttpbodyfileconfig* pConfig ); */ result = xrtHttpBodyFileRangeFuture();