21#ifndef LIBAARUFORMAT_NGCW_JUNK_H
22#define LIBAARUFORMAT_NGCW_JUNK_H
30#ifndef AARUFORMAT_CONTEXT_DECLARED
31#define AARUFORMAT_CONTEXT_DECLARED
40#define NGCW_JUNK_MAP_VERSION 1
105 uint8_t *output, uint32_t length);
#define NGC_LFG_SEED_SIZE
Number of uint32 words needed to seed the LFG.
int32_t ngcw_serialize_junk_map(const NgcwJunkEntry *entries, uint32_t count, uint8_t **out_data, uint32_t *out_len)
Serialize a junk map for storage as a media tag.
int32_t ngcw_deserialize_junk_map(const uint8_t *data, uint32_t data_len, NgcwJunkEntry **entries, uint32_t *count, uint16_t *seed_size)
Deserialize a junk map from a media tag buffer.
void ngcw_junk_lazy_init(aaruformat_context *ctx)
Lazy initialization: load junk map from media tags.
int ngcw_regenerate_junk_sector(const NgcwJunkEntry *entries, uint32_t entry_count, uint64_t disc_offset, uint8_t *output, uint32_t length)
Regenerate a junk sector from the junk map.
In-memory junk map entry.
uint64_t length
Length of junk region in bytes.
uint16_t partition_index
Partition index (0xFFFF for GC / inter-partition).
uint64_t offset
Disc byte offset where junk starts.
uint32_t seed[17]
LFG seed (17 words, big-endian).
Master context representing an open or in‑creation Aaru image.