{"id":30607054,"url":"https://github.com/danaozhong/rust-bitwriter","last_synced_at":"2025-08-30T03:26:25.282Z","repository":{"id":161371562,"uuid":"586757681","full_name":"Danaozhong/rust-bitwriter","owner":"Danaozhong","description":"rust library to write integer types of any bit length into a buffer - from `i1` to `i64`.","archived":false,"fork":false,"pushed_at":"2024-07-16T04:38:20.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T16:59:14.415Z","etag":null,"topics":["bitbanging","bitbuffer","bitwriter","bytebuffer","int15","int4","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Danaozhong.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}},"created_at":"2023-01-09T06:44:16.000Z","updated_at":"2024-09-05T13:44:19.000Z","dependencies_parsed_at":"2023-12-10T13:23:31.197Z","dependency_job_id":"948e42c8-8192-4261-92a8-15066fd73247","html_url":"https://github.com/Danaozhong/rust-bitwriter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Danaozhong/rust-bitwriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danaozhong%2Frust-bitwriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danaozhong%2Frust-bitwriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danaozhong%2Frust-bitwriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danaozhong%2Frust-bitwriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danaozhong","download_url":"https://codeload.github.com/Danaozhong/rust-bitwriter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danaozhong%2Frust-bitwriter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272799946,"owners_count":24995100,"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-08-30T02:00:09.474Z","response_time":77,"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":["bitbanging","bitbuffer","bitwriter","bytebuffer","int15","int4","rust"],"created_at":"2025-08-30T03:26:21.765Z","updated_at":"2025-08-30T03:26:25.259Z","avatar_url":"https://github.com/Danaozhong.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-bitwriter\n\n`rust-bitwriter` is a rust crate to write data into a bit stream.\n\n![tests](https://github.com/Danaozhong/rust-bitwriter/actions/workflows/test.yml/badge.svg)\n\nThis example shows how to write a `bool`, an `u28` and an `i28` into a byte vector:\n\n```rust\n    let mut writer = BitWriter::new();\n\n    writer.write_bool(true).expect(\"failed to write bool\");\n    writer.write_u32(178956970, 28).expect(\"failed to write u28\");\n    writer.write_i32(-22369622, 28).expect(\"failed to write i28\");\n    \n    writer.close().expect(\"failed to close byte vector\");\n    let buffer = writer.data();\n```\n\nYou can write signed and unsigned integers with 1-64 bit length.\n\nIt is intended to complement [irauta/bitreader](https://github.com/irauta/bitreader) with a writer component.\n\n\nThis is my first rust project, so there might be some issues. If you have some suggestions or improvements, please feel welcomed to raise a PR!\n\n## License\n\nLicensed under the Apache License, Version 2.0 or the MIT license, at your option.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanaozhong%2Frust-bitwriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanaozhong%2Frust-bitwriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanaozhong%2Frust-bitwriter/lists"}