1#ifndef NDNPH_PORT_FS_NULL_HPP
2#define NDNPH_PORT_FS_NULL_HPP
4#include "../../core/common.hpp"
7namespace port_fs_null {
28 int read(
const char* filename, uint8_t* buffer,
size_t count) {
28 int read(
const char* filename, uint8_t* buffer,
size_t count) {
…}
42 bool write(
const char* filename,
const uint8_t* buffer,
size_t count) {
42 bool write(
const char* filename,
const uint8_t* buffer,
size_t count) {
…}
7namespace port_fs_null {
…}
62#ifdef NDNPH_PORT_FS_NULL
64using FileStore = port_fs_null::FileStore;
File storage stub.
Definition null.hpp:10
int read(const char *filename, uint8_t *buffer, size_t count)
Read a file.
Definition null.hpp:28
bool write(const char *filename, const uint8_t *buffer, size_t count)
Write a file.
Definition null.hpp:42
bool unlink(const char *filename)
Delete a file.
Definition null.hpp:54
bool open()
Open the storage.
Definition null.hpp:17