#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | s_fstream |
Stream struct. More... | |
Typedefs | |
typedef s_fstream | S_FSTREAM |
Stream struct. More... | |
Functions | |
bool | fstream_read (S_FSTREAM *fs, iu8 *dst, iu8 len) |
Read data from a stream. More... | |
bool | fstream_write (S_FSTREAM *fs, iu8 *src, iu8 len) |
Write data to a stream. More... | |
bool | fstream_test (S_FSTREAM *fs, iu16 len) |
This function tests, if enough space is available to read or write len bytes. More... |
These streams are used to pass more easily EEPROM areas around and to reduce the chances of overwriting unwanted EEPROM areas, e.g. by overflowing the data area.
This is a very slim version of the streams implemented in cryptlib from Peter Gutmann.
|
Stream struct.
|
|
Read data from a stream. Either this functions reads all data or nothing.
|
|
This function tests, if enough space is available to read or write len bytes.
|
|
Write data to a stream. This functions tries to write all or nothing.
|