struct stFiledInfo{
char filedName[20];
int filedType; // 数据类型
int filedLength; // 数据长度
};
struct stHeader{
int version;
char className[20];
int headerSize;
stFieldInfo *filedInfo;
};
struct stRecord{
int id;
int recordSize; // 记录的大小
char *content;
};
struct stBody{
int bodySize; // 大小
int minRecordID;
int maxRecordID;
stRecord *record; // 记录集合
};
#define BLOCK_SIZE 512
class ClassStore{
stHeader header;
stBody body;
char block[BLOCK_SIZE];
int nowBlockID; // 当前的blockid
FILE *hF;
void initFile() // 文件格式化
{
}
ClassStore(char *filename)
{
}
void rHeader()
{
};
void rBody() // 提供高速缓存
{
}
void wHeader()
{
}
void wBody() // 提供高速缓存
{
}
void readBlock(int id)
{
}
void writeBolck()
{
}
}
DL_文件系统
最新推荐文章于 2023-06-08 18:13:09 发布