mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 00:23:14 +00:00
ifcviewer: drop unused SidecarHeader reserved field, bump v8 -> v9
The reserved uint32_t was always written as 0 and never inspected on read. Removing it shrinks the header from 16 to 12 bytes; the version bump makes pre-existing sidecars fail the version check cleanly rather than misreading by 4 bytes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -45,7 +45,8 @@ static constexpr uint32_t SIDECAR_MAGIC = 0x49465657; // "IFVW"
|
||||
// on path stem (foo.ifc and foo.ifcdb/ both map to foo.ifcview) so the
|
||||
// same cache serves either source format. Staleness is user-managed
|
||||
// (delete the sidecar to force a rebuild).
|
||||
static constexpr uint32_t SIDECAR_VERSION = 8;
|
||||
// v9 = unused `reserved` field dropped from header (16 B -> 12 B).
|
||||
static constexpr uint32_t SIDECAR_VERSION = 9;
|
||||
static constexpr uint32_t SIDECAR_ENDIAN = 0x01020304;
|
||||
|
||||
// Fixed-size element record. Strings are stored as (offset, length) pairs
|
||||
|
||||
Reference in New Issue
Block a user