Guitar
Macros | Functions
rwfile.cpp File Reference
#include "rwfile.h"
#include <optional>
#include <vector>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
Include dependency graph for rwfile.cpp:

Macros

#define O_BINARY   0
 

Functions

std::optional< std::vector< char > > readfile (char const *path, int maxsize)
 
bool writefile (char const *path, char const *ptr, size_t len)
 

Macro Definition Documentation

◆ O_BINARY

#define O_BINARY   0

Function Documentation

◆ readfile()

std::optional<std::vector<char> > readfile ( char const *  path,
int  maxsize 
)

◆ writefile()

bool writefile ( char const *  path,
char const *  ptr,
size_t  len 
)