6#define SF3_FORMAT_ID_LOG 0x04
31 uint64_t entry_offset[];
92 uint64_t offsets_size = (end_of_offsets - 4 - 8);
93 return offsets_size /
sizeof(uint64_t);
109 const void *start = (
const void *)log;
110 const void *end = (
const void *)last;
#define SF3_SKIP_STR(STR)
Macro to retrieve a pointer past the variable size of an SF3 string.
#define SF3_SKIP_STRP(STR)
SF3_INLINE const struct sf3_log_chunk * sf3_log_next_chunk(const struct sf3_log_chunk *chunk)
SF3_INLINE const char * sf3_log_entry_source(const struct sf3_log_entry *entry)
Returns the string of the "source" for the entry.
SF3_INLINE const char * sf3_log_entry_category(const struct sf3_log_entry *entry)
Returns the string of the "category" for the entry.
SF3_INLINE const struct sf3_log_entry * sf3_log_first_entry(const struct sf3_log_chunk *chunk)
Returns the first entry of the chunk.
SF3_INLINE uint32_t sf3_log_chunk_remaining(const struct sf3_log_chunk *chunk)
SF3_INLINE const char * sf3_log_entry_message(const struct sf3_log_entry *entry)
Returns the string of the message for the entry.
SF3_INLINE const struct sf3_log_entry * sf3_log_next_entry(const struct sf3_log_entry *entry)
SF3_EXPORT size_t sf3_log_size(const struct sf3_log *log)
Computes the size of the log file in bytes.
SF3_INLINE uint32_t sf3_log_chunk_capacity(const struct sf3_log_chunk *chunk)
Returns the number of log entries that can be stored in the chunk.
The basic header structure of every SF3 file.
A chunk of log entries in a log file.
uint64_t entry_offset[]
The offsets to the log entries.
uint32_t entry_count
The number of registered log entries.
uint64_t size
The size of the chunk structure in bytes.
uint32_t size
The size of the log entry structure in bytes.
struct sf3_log_chunk chunks[]