Struct PbfPreservation

Preservation state attached to a semantically decoded PBF document.

struct PbfPreservation;

If reason != none, semantic rewrite must fail unless a future codec can merge the preserved payload safely. Exact-source reproduction remains valid.

Fields

NameTypeDescription
firstSensitiveOffset ulongFile-block start offset containing the first rewrite-sensitive content.
reason PbfPreservationReason
source PbfRawFile

Properties

NameTypeDescription
hasSource[get] boolWhether exact source bytes are available.
semanticRewriteSafe[get] boolWhether a semantic rewrite may proceed without known silent loss.