{"id":13998124,"url":"https://github.com/terahlunah/bytebuffer","last_synced_at":"2026-03-12T17:39:23.640Z","repository":{"id":62438678,"uuid":"41709272","full_name":"terahlunah/bytebuffer","owner":"terahlunah","description":"This crate provides an easy to use api to read/write data from/to a bunch of bytes","archived":false,"fork":false,"pushed_at":"2024-07-29T22:28:50.000Z","size":70,"stargazers_count":30,"open_issues_count":0,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-14T11:38:57.795Z","etag":null,"topics":["bytebuffer","rust"],"latest_commit_sha":null,"homepage":"https://github.com/terahlunah/bytebuffer","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terahlunah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2015-09-01T01:13:23.000Z","updated_at":"2025-02-16T23:02:43.000Z","dependencies_parsed_at":"2025-02-01T17:10:27.313Z","dependency_job_id":"c94ddd71-cfca-488e-a6d2-626978c850fc","html_url":"https://github.com/terahlunah/bytebuffer","commit_stats":{"total_commits":82,"total_committers":12,"mean_commits":6.833333333333333,"dds":0.4878048780487805,"last_synced_commit":"cbc9ab1a9a9feffbef5708f6ea07a2ad7a349172"},"previous_names":["terah-/rust-bytebuffer","terahlunah/bytebuffer-rs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/terahlunah/bytebuffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terahlunah%2Fbytebuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terahlunah%2Fbytebuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terahlunah%2Fbytebuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terahlunah%2Fbytebuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terahlunah","download_url":"https://codeload.github.com/terahlunah/bytebuffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terahlunah%2Fbytebuffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30435475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bytebuffer","rust"],"created_at":"2024-08-09T19:01:24.765Z","updated_at":"2026-03-12T17:39:23.621Z","avatar_url":"https://github.com/terahlunah.png","language":"Rust","readme":"# `bytebuffer`\n\n---\n\n[![Crates.io](https://img.shields.io/crates/v/bytebuffer.svg?color=orange)](https://crates.io/crates/bytebuffer)\n[![docs.rs](https://img.shields.io/badge/docs-latest-blue.svg)](https://docs.rs/bytebuffer)\n[![CI Checks](https://github.com/terahlunah/bytebuffer/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/terahlunah/bytebuffer/actions/workflows/rust.yml)\n\nThis crate provides an easy to use api to read/write data from/to a bunch of bytes.\n\n```\n[dependencies]\nbytebuffer = \"2.3.0\"\n```\n\n---\n\n### Api sample\n\n```rust\nuse bytebuffer::ByteBuffer;\n\n// Writing\n\nlet mut buffer = ByteBuffer::new();\nbuffer.write_bytes(\u0026vec![0x1, 0xFF, 0x45]);\nbuffer.write_u8(1);\nbuffer.write_i8(1);\nbuffer.write_u16(1);\nbuffer.write_i16(1);\nbuffer.write_u32(1);\nbuffer.write_i32(1);\nbuffer.write_u64(1);\nbuffer.write_i64(1);\nbuffer.write_u128(1);\nbuffer.write_i128(1);\nbuffer.write_f32(0.1);\nbuffer.write_f64(0.1);\nbuffer.write_string(\"Hello\");\nbuffer.write_bit(true);\nbuffer.write_bits(4, 3);\nbuffer.flush_bits();\n\nlet data = buffer.into_vec();\n\n\n// Reading \n\nlet mut reader = ByteBuffer::from(data);\n// or\nlet mut reader = ByteReader::from(\u0026data);\n\nlet _ = reader.read_bytes(3);\nlet _ = reader.read_u8();\nlet _ = reader.read_i8();\nlet _ = reader.read_u16();\nlet _ = reader.read_i16();\nlet _ = reader.read_u32();\nlet _ = reader.read_i32();\nlet _ = reader.read_u64();\nlet _ = reader.read_i64();\nlet _ = reader.read_f32();\nlet _ = reader.read_f64();\nlet _ = reader.read_u128();\nlet _ = reader.read_i128();\nlet _ = reader.read_string();\nlet _ = reader.read_bit();\nlet _ = reader.read_bits(3);\n```\n\nAlso support [half](https://crates.io/crates/half/) 16 bits floats with\n```rust\nfeatures = [\"half\"]\n```\n\n---\n\n### License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n---\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterahlunah%2Fbytebuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterahlunah%2Fbytebuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterahlunah%2Fbytebuffer/lists"}