?? btfiles.h
字號(hào):
#ifndef BTFILE_H#define BTFILE_H#include "Bencode.h"#include <stdio.h>#include <inttypes.h>#include <sys/types.h>#include <sys/stat.h>struct btfile { char *path; uint64_t length; size_t npieces; FILE * fp; struct btfile *next; inline btfile(); // inline ~btfile();};btfile::btfile() { path = NULL; length = 0; npieces = 0; fp = NULL; next = NULL;} /*btfile::~btfile(){ delete path; fclose(fp);}*/ class btFiles { public:btfile * m_head; uint64_t m_totallength; char *m_dirctory; btFiles(); ~btFiles(); btfile * new_node(); int open_file(btfile *); ssize_t IO(char *, uint64_t, size_t, bool); int allocate_disk(int, uint64_t); int BuildFromMI(Bencode * pdict); int list2path(Bencode *, char *); int build_file(const char *, uint64_t); int CreateFiles(); uint64_t GetTotalLength(){ return m_totallength;}; void printout();};#endif /* */
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -