php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
flatfile.c File Reference
#include "php.h"
#include "php_globals.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "flatfile.h"

Go to the source code of this file.

Macros

#define FLATFILE_BLOCK_SIZE   1024
 

Functions

int flatfile_store (flatfile *dba, datum key_datum, datum value_datum, int mode)
 
datum flatfile_fetch (flatfile *dba, datum key_datum)
 
int flatfile_delete (flatfile *dba, datum key_datum)
 
int flatfile_findkey (flatfile *dba, datum key_datum)
 
datum flatfile_firstkey (flatfile *dba)
 
datum flatfile_nextkey (flatfile *dba)
 
const char * flatfile_version (void)
 

Macro Definition Documentation

◆ FLATFILE_BLOCK_SIZE

#define FLATFILE_BLOCK_SIZE   1024

Definition at line 38 of file flatfile.c.

Function Documentation

◆ flatfile_delete()

int flatfile_delete ( flatfile * dba,
datum key_datum )

Definition at line 101 of file flatfile.c.

◆ flatfile_fetch()

datum flatfile_fetch ( flatfile * dba,
datum key_datum )

Definition at line 82 of file flatfile.c.

◆ flatfile_findkey()

int flatfile_findkey ( flatfile * dba,
datum key_datum )

Definition at line 152 of file flatfile.c.

◆ flatfile_firstkey()

datum flatfile_firstkey ( flatfile * dba)

Definition at line 194 of file flatfile.c.

◆ flatfile_nextkey()

datum flatfile_nextkey ( flatfile * dba)

Definition at line 236 of file flatfile.c.

◆ flatfile_store()

int flatfile_store ( flatfile * dba,
datum key_datum,
datum value_datum,
int mode )

Definition at line 47 of file flatfile.c.

◆ flatfile_version()

const char * flatfile_version ( void )

Definition at line 279 of file flatfile.c.