Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal extractor of tar files from buffer #78

Merged
merged 12 commits into from
Dec 16, 2024
Merged

Internal extractor of tar files from buffer #78

merged 12 commits into from
Dec 16, 2024

Conversation

jaromil
Copy link
Member

@jaromil jaromil commented Dec 14, 2024

Facilitate inclusion of multiple files in a single buffer via USTAR type tar buffers (tar --format ustar)

  • new muntar minilib to extract tar from memory buffer: this is based on minitar and microtar but removes all file operations and operates only on buffer
  • new tinf minilib to inflace gzip compressed buffers
  • combined muntargz high level api to extract a .tar.gz from buffer to filesystem, cross-platform

this is based on minitar and microtar but removes all file operations
and operates only on buffer
also fix make clean to delete all binaries
use tar command flag --format compatible with osx

muntar mkdir compat windows

only check checksum of donut for muntar test

correct _WIN32 define

include windows.h on createdirectory
@jaromil jaromil force-pushed the feat/tar-embed branch 2 times, most recently from 8ff6779 to 63991de Compare December 15, 2024 19:38
this saves some i/o while enhancing checks on extraction of assets in
tmpdir
WIN32 is natively present on all windows build for both 32 and 64 bit
windows platforms.
@jaromil jaromil merged commit e4315c1 into main Dec 16, 2024
2 checks passed
@jaromil jaromil deleted the feat/tar-embed branch December 16, 2024 23:52
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