librcsb-core-wrapper 1.005
BlockIO.h
Go to the documentation of this file.
1//$$FILE$$
2//$$VERSION$$
3//$$DATE$$
4//$$LICENSE$$
5
6
7#ifndef BLOCKIO_H
8#define BLOCKIO_H
9
10#include <rcsb/rcsb_types.h>
11
12const unsigned int WORDSPERBLOCK = 2048;
13const unsigned int BLKSIZE = 8192;
14
16{
17public:
20
21 void AssociateBuffer(char** newBuffer);
22
23 unsigned int ReadBlock(const int fd, const UInt32 blockNum);
24 unsigned int WriteBlock(const int fd, const UInt32 blockNum);
25
26private:
27 UInt32 _buffer[WORDSPERBLOCK]; // A buffer for reading/writing blocks
28
29};
30
31#endif
32
const unsigned int BLKSIZE
Definition BlockIO.h:13
const unsigned int WORDSPERBLOCK
Definition BlockIO.h:12
Definition BlockIO.h:16
unsigned int ReadBlock(const int fd, const UInt32 blockNum)
unsigned int WriteBlock(const int fd, const UInt32 blockNum)
void AssociateBuffer(char **newBuffer)
unsigned int UInt32
Definition rcsb_types.h:15