[lib] Fix data size mishap.

This commit is contained in:
2025-08-01 02:13:48 +01:00
parent 247b6a1531
commit 818101bf42
3 changed files with 6 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ typedef struct IndexEntry
/**Type of item pointed by this entry */
uint32_t blockType;
/**Type of data contained by the block pointed by this entry */
uint32_t dataType;
uint16_t dataType;
/**Offset in file where item is stored */
uint64_t offset;
} IndexEntry;
@@ -75,8 +75,8 @@ typedef struct IndexEntry
|blockType
|The type of block this entry points to.
|uint32_t
|4 bytes
|uint16_t
|2 bytes
|dataType
|The type of data the block pointed by this entry contains.

View File

@@ -54,7 +54,7 @@ typedef struct IndexEntry
/**Type of item pointed by this entry */
uint32_t blockType;
/**Type of data contained by the block pointed by this entry */
uint32_t dataType;
uint16_t dataType;
/**Offset in file where item is stored */
uint64_t offset;
} IndexEntry;
@@ -74,7 +74,7 @@ typedef struct IndexEntry
|The type of block this entry points to.
|uint32_t
|4 bytes
|2 bytes
|dataType
|The type of data the block pointed by this entry contains.

View File

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