eaarl-io  1.0.1+71abbd4
EAARL Input/Output Library (Public API)
Data Structures | Macros
stream.h File Reference

Stream interface for working with files. More...

#include "eaarlio/error.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  eaarlio_stream
 Stream interface. More...
 

Macros

#define eaarlio_stream_empty()
 Empty eaarlio_stream value. More...
 

Detailed Description

Stream interface for working with files.

This header defines an interface for working with files and other file-like streams. This decouples the library from direct file access so that other kinds of streams can be implemented if needed, such as compressed streams.

Macro Definition Documentation

◆ eaarlio_stream_empty

#define eaarlio_stream_empty ( )
Value:
(struct eaarlio_stream) \
{ \
NULL, NULL, NULL, NULL, NULL, NULL \
}
Stream interface.
Definition: stream.h:47

Empty eaarlio_stream value.

All pointers will be NULL.

Examples:
example_edb_read.c, example_edb_write.c, and file_stream.c.