Fix data size mishap.

This commit is contained in:
2025-07-31 14:47:54 +01:00
parent 6a2e59263a
commit ed15aa09be
2 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ typedef struct IndexEntry
/**Type of item pointed by this entry */ /**Type of item pointed by this entry */
uint32_t blockType; uint32_t blockType;
/**Type of data contained by the block pointed by this entry */ /**Type of data contained by the block pointed by this entry */
uint16_t dataType; uint32_t dataType;
/**Offset in file where item is stored */ /**Offset in file where item is stored */
uint64_t offset; uint64_t offset;
} IndexEntry; } IndexEntry;

View File

@@ -100,7 +100,7 @@ typedef struct DdtHeader
/**Identifier, <see cref="BlockType.DeDuplicationTable" /> */ /**Identifier, <see cref="BlockType.DeDuplicationTable" /> */
uint32_t identifier; uint32_t identifier;
/**Type of data pointed by this DDT */ /**Type of data pointed by this DDT */
uint16_t type; uint32_t type;
/**Compression algorithm used to compress the DDT */ /**Compression algorithm used to compress the DDT */
uint16_t compression; uint16_t compression;
/**Each entry is ((uint8_t offset in file) &lt;&lt; shift) + (sector offset in block) */ /**Each entry is ((uint8_t offset in file) &lt;&lt; shift) + (sector offset in block) */
@@ -134,7 +134,7 @@ typedef struct IndexEntry
/**Type of item pointed by this entry */ /**Type of item pointed by this entry */
uint32_t blockType; uint32_t blockType;
/**Type of data contained by the block pointed by this entry */ /**Type of data contained by the block pointed by this entry */
uint16_t dataType; uint32_t dataType;
/**Offset in file where item is stored */ /**Offset in file where item is stored */
uint64_t offset; uint64_t offset;
} IndexEntry; } IndexEntry;
@@ -145,7 +145,7 @@ typedef struct BlockHeader
/**Identifier, <see cref="BlockType.DataBlock" /> */ /**Identifier, <see cref="BlockType.DataBlock" /> */
uint32_t identifier; uint32_t identifier;
/**Type of data contained by this block */ /**Type of data contained by this block */
uint16_t type; uint32_t type;
/**Compression algorithm used to compress the block */ /**Compression algorithm used to compress the block */
uint16_t compression; uint16_t compression;
/**Size in uint8_ts of each sector contained in this block */ /**Size in uint8_ts of each sector contained in this block */