Turnstone Operating System
|
tosdb memory backend implementation More...
#include <tosdb/tosdb.h>
#include <tosdb/tosdb_internal.h>
#include <tosdb/tosdb_backend.h>
#include <future.h>
#include <buffer.h>
#include <cpu/sync.h>
#include <logging.h>
#include <strings.h>
#include <xxhash.h>
Classes | |
struct | tosdb_backend_memory_ctx_t |
Typedefs | |
typedef struct tosdb_backend_memory_ctx_t | tosdb_backend_memory_ctx_t |
Functions | |
MODULE ("turnstone.kernel.db") | |
uint8_t * | tosdb_backend_memory_read (tosdb_backend_t *backend, uint64_t position, uint64_t size) |
uint64_t | tosdb_backend_memory_write (tosdb_backend_t *backend, uint64_t position, uint64_t size, uint8_t *data) |
boolean_t | tosdb_backend_memory_flush (tosdb_backend_t *backend) |
tosdb_backend_t * | tosdb_backend_memory_new (uint64_t capacity) |
creates new tosdb memory backend More... | |
tosdb_backend_t * | tosdb_backend_memory_from_buffer (buffer_t *buffer) |
creates new tosdb memory backend from buffer More... | |
uint8_t * | tosdb_backend_memory_get_contents (tosdb_backend_t *backend) |
get memory backend contents More... | |
boolean_t | tosdb_backend_memory_close (tosdb_backend_t *backend) |
tosdb memory backend implementation
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
tosdb_backend_t * tosdb_backend_memory_from_buffer | ( | buffer_t * | buffer | ) |
creates new tosdb memory backend from buffer
[in] | buffer | memory backend buffer |
uint8_t * tosdb_backend_memory_get_contents | ( | tosdb_backend_t * | backend | ) |
get memory backend contents
[in] | backend | memory backend |
tosdb_backend_t * tosdb_backend_memory_new | ( | uint64_t | capacity | ) |
creates new tosdb memory backend
[in] | capacity | memory backend max capacity |