titan1.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "common.h"

Include dependency graph for titan1.c:

Go to the source code of this file.

Functions

void ReadSize (char *fsize)
 read the file size.siz
void CutDataFile (char *fdata)
 read the data file and dump the usefull part
int UpdateIndex (struct IndexType *ndx, char *index)
 fill the index structure
void ReadIndex (char *fndx)
 read the index file

Variables

int32_t lastDataOffset = -1
int32_t lastIndexOffset = 1<<31


Function Documentation

void CutDataFile ( char *  fdata  ) 

read the data file and dump the usefull part

Parameters:
fdata the data.ndx file

Definition at line 106 of file titan1.c.

References lastDataOffset, PrintError, and PrintLog.

Referenced by ParseOptions().

void ReadIndex ( char *  fndx  ) 

read the index file

Parameters:
fndx the data.ndx file

Definition at line 242 of file titan1.c.

References lastIndexOffset, ndx2cache, ndx2tl, PrintError, and UpdateIndex().

Referenced by ParseOptions().

Here is the call graph for this function:

void ReadSize ( char *  fsize  ) 

read the file size.siz

Parameters:
fsize the size.siz file

Definition at line 68 of file titan1.c.

References lastDataOffset, lastIndexOffset, PrintError, and PrintLog.

Referenced by ParseOptions().

int UpdateIndex ( struct IndexType *  ndx,
char *  index 
)

fill the index structure

Parameters:
ndx the index structure
index the pointer to the binary data
Returns:
-1 on error, the index type otherwise

Definition at line 141 of file titan1.c.

References frame2i24, frame2i32, frame2i32_64, PrintLog, and StrTimeNS().

Referenced by ReadIndex().

Here is the call graph for this function:


Variable Documentation

int32_t lastDataOffset = -1

Definition at line 63 of file titan1.c.

Referenced by CutDataFile(), and ReadSize().

int32_t lastIndexOffset = 1<<31

Definition at line 64 of file titan1.c.

Referenced by ReadIndex(), and ReadSize().


Generated on Tue Jul 22 23:11:57 2008 for Titan2Reader by  doxygen 1.5.6