Skip to content

Enable the file formats CLI to query input file sizes via Win32 platform APIs#456

Merged
rdw-software merged 2 commits intomainfrom
platform-get-filesize
Mar 22, 2026
Merged

Enable the file formats CLI to query input file sizes via Win32 platform APIs#456
rdw-software merged 2 commits intomainfrom
platform-get-filesize

Conversation

@rdw-software
Copy link
Copy Markdown
Member

@rdw-software rdw-software commented Mar 22, 2026

Minimal change set to start decoding file contents. Probably have to rework memory arenas and add typed push utilities first. Storing platform APIs inside the header here since it's become clear that the runtime executable needs to be split off (later).

Also introducing a new feature flag (RAGLITE_DEBUG_ANNOTATIONS) because more introspection is already planned.

No point in adding read/write operations as the arenas don't yet support doing what needs to happen. Will add that shortly (POC already complete, still needs some more cleaning up to merge).
Not super useful, but it doesn't require memory arenas or any other platform APIs. Deferring dealing with STDIN and STDOUT streams as that'll be more complex and not as useful overall.

Same for hashing or buffered reading; will need to review the platform API and MSDN docs. There probably isn't one design that works across the board without causing headaches at some point, so I won't even try to design one here.
@rdw-software rdw-software force-pushed the platform-get-filesize branch from 1ee1a7a to 40ca3f9 Compare March 22, 2026 14:11
@rdw-software rdw-software merged commit d1ce2b1 into main Mar 22, 2026
8 checks passed
@rdw-software rdw-software deleted the platform-get-filesize branch March 22, 2026 14:16
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