{"id":28321080,"url":"https://github.com/umaumax/dumptool","last_synced_at":"2025-10-11T20:32:31.713Z","repository":{"id":154771304,"uuid":"181156082","full_name":"umaumax/dumptool","owner":"umaumax","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-18T18:50:49.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-23T13:48:43.348Z","etag":null,"topics":["cpp","dump"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umaumax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-04-13T10:41:19.000Z","updated_at":"2019-10-10T13:52:41.000Z","dependencies_parsed_at":"2023-05-20T12:45:30.681Z","dependency_job_id":null,"html_url":"https://github.com/umaumax/dumptool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umaumax/dumptool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fdumptool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fdumptool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fdumptool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fdumptool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umaumax","download_url":"https://codeload.github.com/umaumax/dumptool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fdumptool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008618,"owners_count":26084480,"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-10-11T02:00:06.511Z","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":["cpp","dump"],"created_at":"2025-05-25T12:13:04.399Z","updated_at":"2025-10-11T20:32:31.707Z","avatar_url":"https://github.com/umaumax.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dumptool\n\n## how to build\n```\ng++ -std=c++11 main.cpp -o dumptool\n```\n\n## how to run\n```\n./dumptool 'string,char[3],int8_t' dummy.bin\n```\n\n## doc\n* `,`区切りでformatを記述する\n* formatは`:`区切りでnameとtypeを指定する(nameは省略可能)\n  * typeは数値を設定することができる\n    * `char[4]`\n* formatに指定可能なtypeの一覧\n* char,int,float,double\n* int8_t,uint8_t,int16_t,uint16_t,int32_t,uint32_t,int64_t,uint64_t\n* string\n* offset: 指定したoffsetに移動する\n* skip: 表示を行わずにskipする\n\n## TODO\n* write test\n* write doc\n* 表示出力形式の指定\n* サイズ指定に，読み込んだ変数を利用できるように\n  * 数値を演算可能とする\n\n## NOTE\n### dummy bin file\n```\n$ echo 'abc\\0x00def' \u003e dummy.bin\n$ hexdump -C dummy.bin\n00000000  61 62 63 00 64 65 66 0a                           |abc.def.|\n00000008\n```\n\n### hexdump exmaple\n```\necho 012345678 | { printf \"%8s|%8s|%8s|%11s|%4s\\n\" \"offset\" \"float32\" \"int32\" \"hex\" \"char\"; printf '%*s\\n' \"43\" '-' | tr ' ' '-'; hexdump -e '1/4 \"%08_ax|%08f|\"' -e '1/4 \"%08X|\"' -e '4/1 \"%02X \"' -e '1/4 \"|\"' -e '4/1 \"%_p\"' -e '\"\\n\"'; }\n```\n\n## FYI\n* [Google C\\+\\+ スタイルガイド\\(日本語全訳\\) 列挙型の名前]( https://ttsuki.github.io/styleguide/cppguide.ja.html#Enumerator_Names )\n* [Can a C\\+\\+ enum class have methods? \\- Stack Overflow]( https://stackoverflow.com/questions/21295935/can-a-c-enum-class-have-methods )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumaumax%2Fdumptool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumaumax%2Fdumptool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumaumax%2Fdumptool/lists"}