mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Add long sector writing support and related error handling in write.c and context.h
This commit is contained in:
@@ -231,6 +231,14 @@ typedef struct aaruformatContext
|
||||
blake3_hasher *blake3_context; ///< Opaque BLAKE3 context for streaming updates
|
||||
uint8_t currentTrackType; ///< Current track type (when writing optical images with tracks, needed for block
|
||||
///< compression type).
|
||||
bool writingLong; ///< True if writing long sectors
|
||||
uint8_t *sectorPrefixBuffer; ///< Buffer for storing sector prefixes when writing optical images
|
||||
uint8_t *sectorSuffixBuffer; ///< Buffer for storing sector suffixes when writing optical images
|
||||
size_t sectorPrefixBufferLength; ///< Length of sectorPrefixBuffer
|
||||
size_t sectorSuffixBufferLength; ///< Length of sectorSuffixBuffer
|
||||
size_t sectorPrefixBufferOffset; ///< Current position in sectorPrefixBuffer
|
||||
size_t sectorSuffixBufferOffset; ///< Current position in sectorSuffixBuffer
|
||||
uint8_t *mode2_subheaders; ///< Buffer for storing MODE2 subheaders when writing MODE2 tracks
|
||||
} aaruformatContext;
|
||||
|
||||
/** \struct DumpHardwareEntriesWithData
|
||||
|
||||
Reference in New Issue
Block a user