GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FILE / V3-8-0
Constituent: file_hdr_boot     Tag: rad750
#include "string.h"
#include "FILE/FILE_hdr.h"
#include "ZLIB/zlib.h"
#include "PBI/Endianness.h"
#include "FILE_hdr_private.h"
Include dependency graph for FILE_hdr.c:
Functions | |
unsigned int | FILE_hdrSizeof (void) |
Get the size of a file header. | |
unsigned int | FILE_hdrCreate (void *buf, unsigned int length, unsigned int time, unsigned int chksum, unsigned short type, unsigned int key, FILE_Hdr_Compression_Flag compress, const char *name) |
Create a new file header. | |
unsigned int | FILE_hdrGetLength (const void *buf, unsigned int *length) |
Get the file data size. | |
unsigned int | FILE_hdrGetChksum (const void *buf, unsigned int *chksum) |
Get the file checksum. | |
unsigned int | FILE_hdrGetTime (const void *buf, unsigned int *time) |
Get the file timestamp. | |
unsigned int | FILE_hdrGetType (const void *buf, unsigned short *type) |
Get the file type. | |
unsigned int | FILE_hdrGetKey (const void *buf, unsigned int *key) |
Get the file key. | |
unsigned int | FILE_hdrGetCompression (const void *buf, unsigned short *compress) |
Get the file compression flag. | |
unsigned int | FILE_hdrGetName (const void *buf, char *name) |
Get the file name string. | |
unsigned int | FILE_hdrVerify (const void *buf) |
Verify the integrety of a file header. |
|
Create a new file header. Creates a file header in the buffer specified by buf. The user is resposible for actually writing the new header into file storage. This library only supports buffers whose total size is aligned on a 16-bit boundary. The function will fail with error #FILE_EHDRPARM if the length parameter is not correctly aligned.
|
|
Get the file checksum. Returns the checksum of the remainder of the file header and file data.
|
|
Get the file compression flag. Returns the file compression flag value.
|
|
Get the file key. Returns the file key value.
|
|
Get the file data size. Returns the size in bytes of file data following the file header.
|
|
Get the file name string. Returns the file name string. The ASCII characters are copied to the user buffer indicated by name. The string is not NULL terminated after return.
|
|
Get the file timestamp. Returns the file timestamp.
|
|
Get the file type. Returns the file type code.
|
|
Get the size of a file header. Returns the size in bytes of a LAT file header.
|
|
Verify the integrety of a file header. Verifies the format of a file header in buf. Calculates header checksum and compares it to value stored in header.
|