Skip to content

Add load_document for the data load skips - #12

Draft
TrueBrain wants to merge 2 commits into
mainfrom
load-document
Draft

TrueBrain wants to merge 2 commits into
mainfrom
load-document

Conversation

@TrueBrain

@TrueBrain TrueBrain commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

load_document() reads a document like load(), and also hands back what load() skips: text blocks like %fleet/1, and unknown binary Document fields (SPEC §6.11, §10.2). binary_field() encodes a field to append to save_binary() output.

  • load, save and save_binary do not change. Additive: a minor release.
  • Only length-delimited binary fields come back.
  • binary_field() takes a field from 2 to 536870911; anything else raises ValueError.
  • load_document() rejects a block version above 4294967295; load() still skips it.
  • The test program gets an extra action for esf-test.

Waits on EVEShipFit/esf-format#28. CI tests against its load-document branch for now; the esf-format ref becomes the squash-merge commit of esf-format#28.

🤖 Generated with Claude Code

TrueBrain and others added 2 commits November 26, 2026 22:40
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TrueBrain TrueBrain changed the title Add load_document to hand back skipped blocks and fields Add load_document for the data load skips Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant