File: BlockCacheSet.H

package info (click to toggle)
dxpc 3.8.0-5
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 672 kB
  • ctags: 780
  • sloc: cpp: 10,145; sh: 173; makefile: 87
file content (24 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef BlockCacheSet_H
#define BlockCacheSet_H

#include "BlockCache.H"


class BlockCacheSet
{
  public:
  BlockCacheSet(unsigned int numCaches);
   ~BlockCacheSet();

  int lookup(unsigned int size, const unsigned char *data,
	     unsigned int &index);
  void get(unsigned int index, unsigned int &size, const unsigned char *&data);
  void set(unsigned int size, const unsigned char *data);

    private:
    BlockCache ** caches_;
  unsigned int size_;
  unsigned int length_;
};

#endif /* BlockCacheSet_H */