GitOS
Loading...
Searching...
No Matches
MemoryFS Class Reference

#include <MemoryFS.hpp>

Public Member Functions

 MemoryFS (char *buffer, size_t buffer_size)
filesystemget_struct ()
uint32_t get_buffer_size ()
int read (uint32_t size, char *out)
int write (char *data, uint32_t size)
int seek (uint32_t offset, FILE_SEEK_MODE seek_mode)

Constructor & Destructor Documentation

◆ MemoryFS()

MemoryFS ( char * buffer,
size_t buffer_size )

Member Function Documentation

◆ get_buffer_size()

uint32_t get_buffer_size ( )

◆ get_struct()

◆ read()

int read ( uint32_t size,
char * out )

References EINVARG, memcpy(), and size.

◆ seek()

int seek ( uint32_t offset,
FILE_SEEK_MODE seek_mode )

◆ write()

int write ( char * data,
uint32_t size )

References data, EINVARG, memcpy(), and size.


The documentation for this class was generated from the following files: