rapidyaml  0.16.0
parseandemitYAML,anddoitfast
file.hpp File Reference
#include <c4/yml/error.hpp>
#include <stddef.h>
#include <stdio.h>

Go to the source code of this file.

Namespaces

 c4
 
 c4::yml
 

Functions

void c4::yml::file_put_contents (void const *buf, size_t sz, FILE *file, const char *filename=nullptr)
 save a contiguous buffer into a file More...
 
template<class ContiguousContainer >
void c4::yml::file_put_contents (ContiguousContainer const &v, FILE *file, const char *filename=nullptr)
 save a contiguous buffer into a file More...
 
void c4::yml::file_put_contents (void const *buf, size_t sz, const char *filename, const char *access="wb")
 save a contiguous buffer into a file More...
 
template<class ContiguousContainer >
void c4::yml::file_put_contents (ContiguousContainer const &v, const char *filename, const char *access="wb")
 save a contiguous buffer into a file More...
 
void c4::yml::file_get_contents (const char *filename, FILE *fp, size_t filesz, void *buf, size_t bufsz)
 load a file of specified size from disk into an existing contiguous buffer. More...
 
size_t c4::yml::file_get_contents (const char *filename, FILE *fp, void *buf, size_t bufsz)
 load a file from disk into an existing contiguous buffer. More...
 
size_t c4::yml::file_get_contents (const char *filename, void *buf, size_t bufsz, const char *access="rb")
 load a file from disk into an existing contiguous buffer. More...
 
template<class ContiguousContainer >
void c4::yml::file_get_contents (ContiguousContainer *v, const char *filename, const char *access="rb")
 load a file from disk into an existing ContiguousContainer, resizing it to fit the file's contents More...
 
template<class ContiguousContainer >
ContiguousContainer c4::yml::file_get_contents (const char *filename, const char *access="rb")
 load a file from disk and return a newly created ContiguousContainer with the file contents More...
 
template<class ContiguousContainer >
void c4::yml::stdin_get_contents (ContiguousContainer *cont, FILE *f=stdin)
 load a file from stdin (or similar stream-like file) and return a newly created ContiguousContainer with the file contents More...
 
template<class ContiguousContainer >
ContiguousContainer c4::yml::stdin_get_contents (FILE *f=stdin)
 load a file from stdin and return a newly created ContiguousContainer with the file contents More...