#include <joedb/journal/Sequential_File.h>
|
| void | sequential_seek (int64_t new_position) |
| |
| size_t | sequential_read (char *data, size_t size) |
| |
| void | sequential_write (const char *data, size_t size) |
| |
| int64_t | get_position () const |
| |
| virtual int64_t | get_size () const |
| | Get the size of the file, or -1 if it is unknown.
|
| |
| virtual size_t | pread (char *data, size_t size, int64_t offset) const |
| | Read a range of bytes.
|
| |
| virtual void | pwrite (const char *data, size_t size, int64_t offset) |
| | Write a range of bytes. Extend file size if necessary.
|
| |
| virtual void | sync () |
| | Write data durably (including file-size change)
|
| |
| virtual void | datasync () |
| | Write data durably (no file-size change)
|
| |
| virtual void | shared_lock (int64_t start, int64_t size) |
| | Lock a range of bytes for reading (prevents writes, not reads)
|
| |
| virtual void | exclusive_lock (int64_t start, int64_t size) |
| | Lock a range of bytes for writing (prevents both writes and reads)
|
| |
| virtual void | unlock (int64_t start, int64_t size) noexcept |
| | Remove a lock. The range should match the range of a corresponding lock.
|
| |
| virtual | ~Abstract_File ()=default |
| |
Definition at line 9 of file Sequential_File.h.
◆ get_position()
| int64_t joedb::Sequential_File::get_position |
( |
| ) |
const |
|
inline |
◆ sequential_read()
| size_t joedb::Sequential_File::sequential_read |
( |
char * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ sequential_seek()
| void joedb::Sequential_File::sequential_seek |
( |
int64_t |
new_position | ) |
|
|
inline |
◆ sequential_write()
| void joedb::Sequential_File::sequential_write |
( |
const char * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: