зеркало из https://github.com/mozilla/pjs.git
added TLineDownloadCache class
This commit is contained in:
Родитель
9d9385e493
Коммит
6f6e7bf39b
|
@ -278,4 +278,28 @@ typedef struct _uid_validity_info {
|
|||
int32 returnValidity;
|
||||
} uid_validity_info;
|
||||
|
||||
|
||||
#define kDownLoadCacheSize 1536
|
||||
|
||||
class TLineDownloadCache {
|
||||
public:
|
||||
TLineDownloadCache();
|
||||
virtual ~TLineDownloadCache();
|
||||
|
||||
uint32 CurrentUID();
|
||||
uint32 SpaceAvailable();
|
||||
XP_Bool CacheEmpty();
|
||||
|
||||
msg_line_info *GetCurrentLineInfo();
|
||||
|
||||
void ResetCache();
|
||||
void CacheLine(const char *line, uint32 uid);
|
||||
private:
|
||||
char fLineCache[kDownLoadCacheSize];
|
||||
uint32 fBytesUsed;
|
||||
|
||||
msg_line_info *fLineInfo;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче