?? savefile.h
字號:
// savefile.h
//
#ifndef savefile_h
#define savefile_h
#include "list.h"
#include "common.h"
#define RBUFF_MAXLEN 4096
#define rle_code 0x0f
class savefile
{ private:
HANDLE sfile;
unsigned long rbufflen;
unsigned long rbuffptr;
byte rbuff[RBUFF_MAXLEN+1];
bool rbhigh;
bool rlemode;
bool rlestart;
byte rlecount;
byte rlebyte;
private:
bool getnibble(byte *n);
bool getrlenibble(byte *n);
bool putnibble(byte n);
bool flushnibble(void);
bool putrlenibble(byte n);
bool flushrlenibble(void);
public:
savefile();
~savefile();
bool sopen(LPCTSTR lpFileName,DWORD dwDesiredAccess,DWORD dwShareMode,
DWORD dwCreationDistribution,DWORD dwFlagsAndAttributes);
void sclose(void);
bool sread(LPVOID lpBuffer,DWORD nNumberOfBytesToRead,LPDWORD lpNumberOfBytesRead);
bool swrite(LPCVOID lpBuffer,DWORD nNumberOfBytesToWrite);
bool flushfilewrite(void);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -