blob: d7051a7590d8c797087ccc78d4a4911580870785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*! @file compound-file-difat.h */
#ifndef COMPOUND_FILE_DIFAT_H
#define COMPOUND_FILE_DIFAT_H
#include "emb-file.h"
#include "api-start.h"
#ifdef __cplusplus
extern "C" {
#endif
/* double-indirection file allocation table references */
typedef struct _bcf_file_difat
{
unsigned int fatSectorCount;
unsigned int fatSectorEntries[109];
unsigned int sectorSize;
} bcf_file_difat;
extern EMB_PRIVATE bcf_file_difat* EMB_CALL bcf_difat_create(EmbFile* file, unsigned int fatSectors, const unsigned int sectorSize);
extern EMB_PRIVATE unsigned int EMB_CALL readFullSector(EmbFile* file, bcf_file_difat* bcfFile, unsigned int* numberOfDifatEntriesStillToRead);
extern EMB_PRIVATE unsigned int EMB_CALL numberOfEntriesInDifatSector(bcf_file_difat* fat);
extern EMB_PRIVATE void EMB_CALL bcf_file_difat_free(bcf_file_difat* difat);
/*! Constant representing the number of Double Indirect FAT entries in a single header */
static const unsigned int NumberOfDifatEntriesInHeader = 109;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "api-stop.h"
#endif /* COMPOUND_FILE_DIFAT_H */
/* kate: bom off; indent-mode cstyle; indent-width 4; replace-trailing-space-save on; */
|