#include <assert.h>
#include "fret.h"
#include "common.h"
#include "bufferstore.h"
#include "gramstore.h"
Include dependency graph for buffer_api.c:
Functions | |
bool | fret_putBuffer (FBuffer *pBuffer) |
Pass a buffer containing data to be analysed to the library. | |
bool | fret_deleteBuffer (BufferId bufferId) |
Remove a buffer from the data set that may be examined by the library. | |
bool | fret_deleteAll (void) |
Delete all stored Buffers. |
|
Delete all stored Buffers. Delete all memory that has been allocated to Buffer storage. Allocated Buffer identifiers cannot be used again.
|
|
Remove a buffer from the data set that may be examined by the library. Passes the identifier of a buffer. This buffer will be removed from the list of buffers that may be scanned. The identifier of this buffer can never be used again. Memory allocated to the buffer will also be deallocated.
|
|
Pass a buffer containing data to be analysed to the library. Passes a pointer to a data buffer to the library. The length of the buffer (in bytes) is also passed. A Buffer ID is allocated to the buffer if it is accepted. The library makes a private copy of the buffer and is responsible for its deletion when not required. Therefore, the clientīs copy of the buffer can be safely deleted.
|