mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Implement sector reading.
This commit is contained in:
@@ -58,4 +58,6 @@ uint64_t crc64_data(const uint8_t *data, size_t len, uint64_t polynomial, uint64
|
||||
|
||||
uint64_t crc64_data_ecma(const uint8_t *data, size_t len);
|
||||
|
||||
uint8_t *read_sector(void *context, uint64_t sectorAddress, uint32_t *length);
|
||||
|
||||
#endif //LIBDICFORMAT_DECLS_H
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
#define DICF_ERROR_FILE_TOO_SMALL -2
|
||||
#define DICF_ERROR_INCOMPATIBLE_VERSION -3
|
||||
#define DICF_ERROR_CANNOT_READ_INDEX -4
|
||||
#define DICF_ERROR_SECTOR_OUT_OF_BOUNDS -5
|
||||
#define DICF_ERROR_CANNOT_READ_HEADER -6
|
||||
#define DICF_ERROR_CANNOT_READ_BLOCK -7
|
||||
#define DICF_ERROR_UNSUPPORTED_COMPRESSION -8
|
||||
|
||||
#endif //LIBDICFORMAT_ERRORS_H
|
||||
|
||||
Reference in New Issue
Block a user