Repository navigation
refactor: rename EntryMeta.offset to file_offset - #98
Merged
Merged
Conversation
The field is an absolute archive offset, not a block-relative one. Rename it to make the distinction from DataBlockMeta.file_offsets explicit, and correct the format docs: the field description, the file-locating recipe and the reader validation contract now state the absolute semantics. The serialized layout is unchanged (the same 8 bytes at the same position), so no format version bump is needed and existing archives remain compatible. Closes #78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EntryMeta::offsettoEntryMeta::file_offsetacross the encoder, decoder, TSV output, the reader cross-check and tests.doc/file_format.mdand the Chinese translation: the field is an absolute archive offset, the locating recipe uses it directly, and the block-relative offset isDataBlockMeta.file_offsets[i].dump'soffsetcolumn reports the absolute value andlsdoes not display it.Tests
ctest: 178/178 passedctest: 178/178 passedPerformance gate
Against
origin/main(16a7965): pack +0.7% wall time / -0.2% peak RSS; unpack -5.0% wall time / -1.3% peak RSS. No regression.Closes #78