{"id":15442453,"url":"https://github.com/jmcph4/spinifex-unsigned-varint","last_synced_at":"2026-05-02T09:32:23.848Z","repository":{"id":57668119,"uuid":"249621619","full_name":"jmcph4/spinifex-unsigned-varint","owner":"jmcph4","description":"Implementation of the Multiformat unsigned variable integer type","archived":false,"fork":false,"pushed_at":"2020-03-31T08:58:45.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T13:08:20.687Z","etag":null,"topics":["integer","multiformat","multiformat-specifications","multiformat-unsigned-varint","varint"],"latest_commit_sha":null,"homepage":null,"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/jmcph4.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}},"created_at":"2020-03-24T05:32:35.000Z","updated_at":"2021-10-12T02:51:12.000Z","dependencies_parsed_at":"2022-09-07T17:34:17.214Z","dependency_job_id":null,"html_url":"https://github.com/jmcph4/spinifex-unsigned-varint","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fspinifex-unsigned-varint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fspinifex-unsigned-varint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fspinifex-unsigned-varint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fspinifex-unsigned-varint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmcph4","download_url":"https://codeload.github.com/jmcph4/spinifex-unsigned-varint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984589,"owners_count":20704798,"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":["integer","multiformat","multiformat-specifications","multiformat-unsigned-varint","varint"],"created_at":"2024-10-01T19:27:38.930Z","updated_at":"2026-05-02T09:32:23.800Z","avatar_url":"https://github.com/jmcph4.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spinifex-unsigned-varint\n\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\nImplementation of the unsigned variable integer type used in multiformats\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Install\n\n```shell\n$ git clone git@github.com:jmcph4/spinifex-unsigned-varint.git\n$ cd spinifex-unsigned-varint\n$ cargo build\n```\n\n## Usage\n\n```rust\n/* initialise from native integer types */\nlet some_number: u128 = 128;\nlet my_uvarint: UVarInt = UVarInt::new(some_number);\n\n/* encode into byte vector */\nlet my_uvarint_bytes: Vec\u003cu8\u003e = my_uvarint\nprintln!(\"{:#b}\", my_uvarint_bytes); /* \"[128, 1]\" */\n\n/* decode from byte vector */\nlet my_other_uvarint_bytes: Vec\u003cu8\u003e = vec![128, 128, 1];\nlet my_other_uvarint: UVarInt = UVarInt::from_bytes(my_other_uvarint_bytes).unwrap();\nprintln!(\"{}\", my_other_uvarint); /* \"uv16384\" */\n```\n\n## Maintainers\n\n[@jmcph4](https://github.com/jmcph4)\n\n## Contributing\n\nSmall note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nMIT © 2020 Jack McPherson\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcph4%2Fspinifex-unsigned-varint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmcph4%2Fspinifex-unsigned-varint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcph4%2Fspinifex-unsigned-varint/lists"}