mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 11:14:39 +00:00
[lib] Fix data size mismatch.
This commit is contained in:
@@ -17,7 +17,7 @@ typedef struct BlockHeader
|
||||
/**Identifier, <see cref="BlockType.DataBlock" /> */
|
||||
uint32_t identifier;
|
||||
/**Type of data contained by this block */
|
||||
uint32_t type;
|
||||
uint16_t type;
|
||||
/**Compression algorithm used to compress the block */
|
||||
uint16_t compression;
|
||||
/**Size in uint8_ts of each sector contained in this block */
|
||||
|
||||
@@ -16,7 +16,7 @@ typedef struct DdtHeader
|
||||
/**Identifier, <see cref="BlockType.DeDuplicationTable" /> */
|
||||
uint32_t identifier;
|
||||
/**Type of data pointed by this DDT */
|
||||
uint32_t type;
|
||||
uint16_t type;
|
||||
/**Compression algorithm used to compress the DDT */
|
||||
uint16_t compression;
|
||||
/**Each entry is ((uint8_t offset in file) << shift) + (sector offset in block) */
|
||||
|
||||
@@ -34,6 +34,19 @@
|
||||
#define SHA256_DIGEST_LENGTH 32
|
||||
#endif
|
||||
|
||||
typedef struct Crc64Context {
|
||||
uint64_t finalSeed;
|
||||
uint64_t table[256];
|
||||
uint64_t hashInt;
|
||||
} Crc64Context;
|
||||
|
||||
typedef struct CdEccContext {
|
||||
bool initedEdc;
|
||||
uint8_t *eccBTable;
|
||||
uint8_t *eccFTable;
|
||||
uint32_t *edcTable;
|
||||
} CdEccContext;
|
||||
|
||||
typedef struct Checksums
|
||||
{
|
||||
bool hasMd5;
|
||||
@@ -117,17 +130,4 @@ typedef struct DumpExtent
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef struct Crc64Context {
|
||||
uint64_t finalSeed;
|
||||
uint64_t table[256];
|
||||
uint64_t hashInt;
|
||||
} Crc64Context;
|
||||
|
||||
typedef struct CdEccContext {
|
||||
bool initedEdc;
|
||||
uint8_t *eccBTable;
|
||||
uint8_t *eccFTable;
|
||||
uint32_t *edcTable;
|
||||
} CdEccContext;
|
||||
|
||||
#endif // LIBAARUFORMAT_CONTEXT_H
|
||||
|
||||
@@ -26,7 +26,7 @@ typedef struct BlockHeader {
|
||||
/**Identifier, <see cref="BlockType.DataBlock" /> */
|
||||
uint32_t identifier;
|
||||
/**Type of data contained by this block */
|
||||
uint32_t type;
|
||||
uint16_t type;
|
||||
/**Compression algorithm used to compress the block */
|
||||
uint16_t compression;
|
||||
/**Size in uint8_ts of each sector contained in this block */
|
||||
|
||||
@@ -26,7 +26,7 @@ typedef struct DdtHeader {
|
||||
/**Identifier, <see cref="BlockType.DeDuplicationTable" /> */
|
||||
uint32_t identifier;
|
||||
/**Type of data pointed by this DDT */
|
||||
uint32_t type;
|
||||
uint16_t type;
|
||||
/**Compression algorithm used to compress the DDT */
|
||||
uint16_t compression;
|
||||
/**Each entry is ((uint8_t offset in file) << shift) + (sector offset in block) */
|
||||
|
||||
Reference in New Issue
Block a user