{"id":26249522,"url":"https://github.com/randomgamingdev/binheadergen","last_synced_at":"2025-12-26T17:39:41.827Z","repository":{"id":168838673,"uuid":"644644432","full_name":"RandomGamingDev/BinHeaderGen","owner":"RandomGamingDev","description":"A simple 1 file program for loading binary files into a header file that gets compiled directly into the executable.","archived":false,"fork":false,"pushed_at":"2023-05-24T01:04:04.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T15:41:50.183Z","etag":null,"topics":["binary","cpp","cpp20","easy","fast","file","header","include","includes","input","simple","small"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RandomGamingDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-24T00:47:41.000Z","updated_at":"2023-05-24T00:59:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"055413c6-0a35-4e19-b4fe-87153c4c73f7","html_url":"https://github.com/RandomGamingDev/BinHeaderGen","commit_stats":null,"previous_names":["randomgamingdev/binheadergen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RandomGamingDev/BinHeaderGen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBinHeaderGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBinHeaderGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBinHeaderGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBinHeaderGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomGamingDev","download_url":"https://codeload.github.com/RandomGamingDev/BinHeaderGen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBinHeaderGen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28057664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary","cpp","cpp20","easy","fast","file","header","include","includes","input","simple","small"],"created_at":"2025-03-13T15:38:07.378Z","updated_at":"2025-12-26T17:39:41.821Z","avatar_url":"https://github.com/RandomGamingDev.png","language":"C++","readme":"# BinHeaderGen\nA simple 1 file program for loading binary files into a header file that gets compiled directly into the executable.\n\nThese headers can be used for C/C++\n\nIn the header the binary data is stored in the form of a C-string/char*/char[] with each character representing a byte since C/C++ uses ASCII for characters which uses a byte for each character. This makes it not only easy for manipulation, but also really compacts since there's no need for things like commas inbetween, as it's just the pure binary data put inbetween 2 strings that turn it into a valid header.\n\nWant to incorporate a file into your executable without a file? \u003cbr/\u003e\nUse this! \u003cbr/\u003e\nSimply compile using your favorite C++ 20 compiler (because it's just 1 file you can literally just use g++) \u003cbr/\u003e\nThen run the executable with a parameter like this: ./\\\u003cexec name\\\u003e \\\u003cfile path\\\u003e \u003cbr/\u003e\nThen it'll generate `header.h` (remember to change the names and use namespaces wherever you want those) \u003cbr/\u003e\nEnjoy! \u003cbr/\u003e\n  \nStoring data this way is perfect for:\u003cbr/\u003e\n- Avoiding file reading especially for systems where that may not be possible or for avoiding the inherent cost that comes with file reading\n- Keeping things in a single executable\n- Making sure that people don't actually break stuff by messing with files\n- Making certain data harder to access\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomgamingdev%2Fbinheadergen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomgamingdev%2Fbinheadergen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomgamingdev%2Fbinheadergen/lists"}