{"id":50416875,"url":"https://github.com/localvoid/exbytes","last_synced_at":"2026-05-31T06:30:23.716Z","repository":{"id":360823579,"uuid":"1251858127","full_name":"localvoid/exbytes","owner":"localvoid","description":"Extensions for BytesMut/Bytes providing variable-length integer encoding via LEB128 (unsigned) and ZigZag (signed)","archived":false,"fork":false,"pushed_at":"2026-05-28T02:27:45.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T03:20:28.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/localvoid.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-28T01:17:09.000Z","updated_at":"2026-05-28T02:27:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/localvoid/exbytes","commit_stats":null,"previous_names":["localvoid/exbytes"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/localvoid/exbytes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fexbytes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fexbytes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fexbytes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fexbytes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/exbytes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fexbytes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":[],"created_at":"2026-05-31T06:30:22.992Z","updated_at":"2026-05-31T06:30:23.708Z","avatar_url":"https://github.com/localvoid.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exbytes\n\nExtensions for [bytes](https://crates.io/crates/bytes) providing variable-length integer encoding via LEB128 (unsigned) and ZigZag (signed).\n\n## Usage\n\n```rust\nuse bytes::BytesMut;\nuse exbytes::{BytesMutExt as _, BytesExt as _};\n\nlet mut buf = BytesMut::new();\nbuf.put_vu32(42u32);\nbuf.put_zz32(-7i32);\n\nlet mut view = buf.freeze();\nlet a = view.get_vu32();   // 42\nlet b = view.get_zz32();   // -7\n```\n\nFallible decoding is also available via `try_get_*` methods:\n\n```rust\nlet mut buf: \u0026[u8] = \u0026[0x80, 0x01];\nlet n = buf.try_get_vu16()?;  // 128\n```\n\n## Supported types\n\n| Encoding | `get` / `put`                   | `try_get`                          |\n| -------- | ------------------------------- | ---------------------------------- |\n| LEB128   | `vu16`, `vu32`, `vu64`, `vu128` | `try_get_vu16`, …, `try_get_vu128` |\n| ZigZag   | `zz16`, `zz32`, `zz64`, `zz128` | `try_get_zz16`, …, `try_get_zz128` |\n\n## License\n\nMIT or Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fexbytes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Fexbytes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fexbytes/lists"}