photon  1.1
Functions
photon_buffertable.h File Reference
#include <stdlib.h>
#include "photon_buffer_internal.h"
#include "logging.h"

Go to the source code of this file.

Functions

int buffertable_init (int max_buffers)
 
void buffertable_finalize ()
 
int buffertable_find_containing (void *addr, uint64_t size, photonBufferHandle *result)
 
int buffertable_find_exact (void *addr, uint64_t size, photonBufferHandle *result)
 
int buffertable_insert (photonBufferHandle buffer)
 
int buffertable_remove (photonBufferHandle buffer)
 

Function Documentation

◆ buffertable_finalize()

void buffertable_finalize ( )

Definition at line 55 of file photon_buffertable.c.

◆ buffertable_find_containing()

int buffertable_find_containing ( void *  addr,
uint64_t  size,
photonBufferHandle result 
)

Definition at line 59 of file photon_buffertable.c.

◆ buffertable_find_exact()

int buffertable_find_exact ( void *  addr,
uint64_t  size,
photonBufferHandle result 
)

Definition at line 63 of file photon_buffertable.c.

◆ buffertable_init()

int buffertable_init ( int  max_buffers)

Definition at line 46 of file photon_buffertable.c.

◆ buffertable_insert()

int buffertable_insert ( photonBufferHandle  buffer)

Definition at line 81 of file photon_buffertable.c.

◆ buffertable_remove()

int buffertable_remove ( photonBufferHandle  buffer)

Definition at line 102 of file photon_buffertable.c.