#include <config.h>
#include "safeerrno.h"
#include "safeunistd.h"
#include <xapian/error.h>
#include "flint_io.h"
Include dependency graph for flint_io.cc:
Go to the source code of this file.
Functions | |
size_t | flint_io_read (int fd, char *p, size_t n, size_t min) |
Read n bytes (or until EOF) into block pointed to by p from file descriptor fd. | |
void | flint_io_write (int fd, const char *p, size_t n) |
Write n bytes from block pointed to by p to file descriptor fd. |
Definition in file flint_io.cc.
size_t flint_io_read | ( | int | fd, | |
char * | p, | |||
size_t | n, | |||
size_t | min | |||
) |
Read n bytes (or until EOF) into block pointed to by p from file descriptor fd.
If less than min bytes are read, throw an exception.
Returns the number of bytes actually read.
Definition at line 30 of file flint_io.cc.
Referenced by FlintVersion::read_and_check(), and FlintTable::read_block().
void flint_io_write | ( | int | fd, | |
const char * | p, | |||
size_t | n | |||
) |
Write n bytes from block pointed to by p to file descriptor fd.
Definition at line 51 of file flint_io.cc.
Referenced by FlintVersion::create(), and FlintTable::write_block().