Go to the source code of this file.
◆ SF3_FORMAT_ID_LOG
#define SF3_FORMAT_ID_LOG 0x04 |
The format_id for a log file.
Definition at line 6 of file sf3_log.h.
◆ sf3_log_chunk_capacity()
Returns the number of log entries that can be stored in the chunk.
Definition at line 90 of file sf3_log.h.
◆ sf3_log_chunk_remaining()
Returns the number of log entries that can still be added to the chunk before it runs out of capacity.
Definition at line 98 of file sf3_log.h.
◆ sf3_log_entry()
Returns the log entry at the requested index. If the entry index is out of bounds for the chunk, null is returned instead.
Definition at line 76 of file sf3_log.h.
◆ sf3_log_entry_category()
Returns the string of the "category" for the entry.
Definition at line 51 of file sf3_log.h.
◆ sf3_log_entry_message()
Returns the string of the message for the entry.
Definition at line 56 of file sf3_log.h.
◆ sf3_log_entry_source()
Returns the string of the "source" for the entry.
Definition at line 46 of file sf3_log.h.
◆ sf3_log_first_entry()
Returns the first entry of the chunk.
Definition at line 69 of file sf3_log.h.
◆ sf3_log_next_chunk()
Returns the next chunk after this one. Note that this function does not perform any bounds checking whatsoever. It is up to you to ensure you do not call this with the last chunk of a log.
Definition at line 85 of file sf3_log.h.
◆ sf3_log_next_entry()
Returns the next entry after this one. Note that this function does not perform any bounds checking whatsoever. It is up to you to ensure you do not call this with the last entry of a chunk.
Definition at line 64 of file sf3_log.h.
◆ sf3_log_size()
Computes the size of the log file in bytes.
Definition at line 103 of file sf3_log.h.