Implement sector reading.

This commit is contained in:
2019-03-21 01:06:21 +00:00
parent 4b20f2057e
commit 544669c702
4 changed files with 128 additions and 3 deletions

View File

@@ -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

View File

@@ -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