34 memcpy(buffer,
ptr_ + offset, bytes);
39 memcpy(
ptr_ + offset, buffer, bytes);
76 #ifndef FOXXLL_MEMFILE_DONT_CLEAR_FREED_MEMORY 87 memcpy(
ptr_ + offset, uninitialized, static_cast<size_t>(size));
void set_size(offset_type newsize) final
static uint_pair max()
return an uint_pair instance containing the largest value possible
const char * io_type() const final
void serve(void *buffer, offset_type offset, size_type bytes, request::read_or_write op) final
request::offset_type offset_type
the offset of a request, also the size of the file
constexpr size_t BlockAlignment
request::size_type size_type
the size of a request
offset_type size_
size of memory area
void * malloc(size_t size) NOEXCEPT
exported malloc symbol that overrides loading from libc
static const size_t bytes
number of bytes in uint_pair
void lock() final
Locks file for reading and writing (acquires a lock in the file system).
std::mutex mutex_
sequentialize function calls
void free(void *ptr) NOEXCEPT
exported free symbol that overrides loading from libc
void discard(offset_type offset, offset_type size) final
char * ptr_
pointer to memory area of "file"
void * realloc(void *ptr, size_t size) NOEXCEPT
exported realloc() symbol that overrides loading from libc