{"id":16014937,"url":"https://github.com/dansnow/crystal-binary_parser","last_synced_at":"2025-03-18T03:30:35.861Z","repository":{"id":66290228,"uuid":"76118717","full_name":"DanSnow/crystal-binary_parser","owner":"DanSnow","description":"Binary parser for Crystal","archived":false,"fork":false,"pushed_at":"2022-03-13T01:17:30.000Z","size":66,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T06:30:37.448Z","etag":null,"topics":["binary-parser","crystal","crystal-binary-parser"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/DanSnow.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}},"created_at":"2016-12-10T14:50:30.000Z","updated_at":"2022-03-13T01:17:33.000Z","dependencies_parsed_at":"2023-02-22T13:00:33.237Z","dependency_job_id":null,"html_url":"https://github.com/DanSnow/crystal-binary_parser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Fcrystal-binary_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Fcrystal-binary_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Fcrystal-binary_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Fcrystal-binary_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanSnow","download_url":"https://codeload.github.com/DanSnow/crystal-binary_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896312,"owners_count":20365354,"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","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-parser","crystal","crystal-binary-parser"],"created_at":"2024-10-08T15:05:35.356Z","updated_at":"2025-03-18T03:30:35.520Z","avatar_url":"https://github.com/DanSnow.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"crystal-binary_parser\n=====================\n\n[![CircleCI](https://circleci.com/gh/DanSnow/crystal-binary_parser.svg?style=shield)](https://circleci.com/gh/DanSnow/crystal-binary_parser)\n[![GitHub release](https://img.shields.io/github/release/DanSnow/crystal-binary_parser.svg?style=flat-square)](https://github.com/DanSnow/crystal-binary_parser/releases)\n\nDescription\n-----------\n\nA binary parser for crystal.\n\nRequirement\n-----------\n\n- crystal \u003e= 0.20.0\n\nInstall\n-------\n\nAdd this to your `shard.yml`\n\n```yml\ndependencies:\n  binary_parser:\n    github: DanSnow/crystal-binary_parser\n```\n\nFeature\n-------\n\n- Parse and write binary file\n- Support array (fixed size or variable size)\n- Support string (fixed length or valirable length)\n- Support nested parser\n- Support config which endian to use\n- Calculate byte size\n\nUsage\n-----\n\n```crystal\nrequire \"binary_parser\"\n\nclass Parser \u003c BinaryParser\n  uint8 :foo\nend\n\n# Load a file\nparser = Parser.new\nparser.load(\"\u003cfilename\u003e\")\n\n# Or from IO\nio = File.open(\"\u003cfilename\u003e\")\nparser = Parser.new\nparser.load(io)\n\n# Now you can get your data\nputs parser.foo\n```\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansnow%2Fcrystal-binary_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdansnow%2Fcrystal-binary_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansnow%2Fcrystal-binary_parser/lists"}