#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "fret.h"
#include "common.h"
#include "scans_offset.h"
#include "gramstore.h"
Include dependency graph for scans_offset.c:
Data Structures | |
struct | State |
Describes the internal state of a Scan. More... | |
Functions | |
bool | scanOffsetsByte (const unsigned char *const pBuffer, const size_t bufLen, void *const pState, const BufferId bufferId, Gram *const pResultGram) |
bool | scanOffsetsShort (const unsigned char *const pBuffer, const size_t bufLen, void *const pState, const BufferId bufferId, Gram *const pResultGram) |
bool | scanOffsetsLong (const unsigned char *const pBuffer, const size_t bufLen, void *const pState, const BufferId bufferId, Gram *const pResultGram) |
void * | newStateOffsets (void) |
Implements Scans that looks for byte, short and long offsets with the buffer.
|
Allocates a new State variable that stores the state of a Scan. |
|
Function scans a buffer, looking for values that may indicate an offset to the beginning of an already identified or undiscovered Gram. This scan examines the values stored in 1 byte. |
|
Function scans a buffer, looking for values that may indicate an offset to the beginning of an already identified or undiscovered Gram. This Scan examines the values stored in 4 bytes. |
|
Function scans a buffer, looking for values that may indicate an offset to the beginning of an already identified or undiscovered Gram. This scan examines the values stored in 2 bytes. |