Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Async_Reader.h
Go to the documentation of this file.
1#ifndef joedb_Async_Reader_declared
2#define joedb_Async_Reader_declared
3
5
6namespace joedb
7{
8 /// @ingroup journal
10 {
11 private:
12 const Abstract_File &file;
13 int64_t end;
14 int64_t current;
15 bool end_of_file;
16
17 public:
18 Async_Reader(const Abstract_File &file, int64_t start, int64_t end);
19
20 size_t read(char *buffer, size_t capacity);
21
22 bool is_end_of_file() const {return end_of_file;}
23 int64_t get_end() const {return end;}
24 int64_t get_current() const {return current;}
25 int64_t get_remaining() const {return end - current;}
26 };
27}
28
29#endif
int64_t get_remaining() const
int64_t get_end() const
int64_t get_current() const
size_t read(char *buffer, size_t capacity)
bool is_end_of_file() const
Definition Blob.h:7