{"id":13439251,"url":"https://github.com/BurntSushi/byteorder","last_synced_at":"2025-03-20T07:32:47.762Z","repository":{"id":26811880,"uuid":"30270430","full_name":"BurntSushi/byteorder","owner":"BurntSushi","description":"Rust library for reading/writing numbers in big-endian and little-endian.","archived":false,"fork":false,"pushed_at":"2024-09-25T20:46:20.000Z","size":288,"stargazers_count":1008,"open_issues_count":13,"forks_count":147,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-13T17:29:21.774Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BurntSushi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","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},"funding":{"github":["BurntSushi"]}},"created_at":"2015-02-03T23:28:34.000Z","updated_at":"2025-03-12T22:09:07.000Z","dependencies_parsed_at":"2024-04-02T04:26:00.376Z","dependency_job_id":"fd49b6fc-c0ff-4c61-913a-fbb4a77c3812","html_url":"https://github.com/BurntSushi/byteorder","commit_stats":{"total_commits":232,"total_committers":52,"mean_commits":4.461538461538462,"dds":0.3620689655172413,"last_synced_commit":"5a82625fae462e8ba64cec8146b24a372b4d75c6"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurntSushi%2Fbyteorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurntSushi%2Fbyteorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurntSushi%2Fbyteorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurntSushi%2Fbyteorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BurntSushi","download_url":"https://codeload.github.com/BurntSushi/byteorder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971191,"owners_count":20376784,"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":[],"created_at":"2024-07-31T03:01:12.373Z","updated_at":"2025-03-20T07:32:42.755Z","avatar_url":"https://github.com/BurntSushi.png","language":"Rust","readme":"byteorder\n=========\nThis crate provides convenience methods for encoding and decoding\nnumbers in either big-endian or little-endian order.\n\n[![Build status](https://github.com/BurntSushi/byteorder/workflows/ci/badge.svg)](https://github.com/BurntSushi/byteorder/actions)\n[![crates.io](https://img.shields.io/crates/v/byteorder.svg)](https://crates.io/crates/byteorder)\n\nDual-licensed under MIT or the [UNLICENSE](https://unlicense.org/).\n\n\n### Documentation\n\nhttps://docs.rs/byteorder\n\n\n### Installation\n\nThis crate works with Cargo and is on\n[crates.io](https://crates.io/crates/byteorder). Add it to your `Cargo.toml`\nlike so:\n\n```toml\n[dependencies]\nbyteorder = \"1\"\n```\n\nIf you want to augment existing `Read` and `Write` traits, then import the\nextension methods like so:\n\n```rust\nuse byteorder::{ReadBytesExt, WriteBytesExt, BigEndian, LittleEndian};\n```\n\nFor example:\n\n```rust\nuse std::io::Cursor;\nuse byteorder::{BigEndian, ReadBytesExt};\n\nlet mut rdr = Cursor::new(vec![2, 5, 3, 0]);\n// Note that we use type parameters to indicate which kind of byte order\n// we want!\nassert_eq!(517, rdr.read_u16::\u003cBigEndian\u003e().unwrap());\nassert_eq!(768, rdr.read_u16::\u003cBigEndian\u003e().unwrap());\n```\n\n### `no_std` crates\n\nThis crate has a feature, `std`, that is enabled by default. To use this crate\nin a `no_std` context, add the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\nbyteorder = { version = \"1\", default-features = false }\n```\n\n\n### Minimum Rust version policy\n\nThis crate's minimum supported `rustc` version is `1.60.0`.\n\nThe current policy is that the minimum Rust version required to use this crate\ncan be increased in minor version updates. For example, if `crate 1.0` requires\nRust 1.20.0, then `crate 1.0.z` for all values of `z` will also require Rust\n1.20.0 or newer. However, `crate 1.y` for `y \u003e 0` may require a newer minimum\nversion of Rust.\n\nIn general, this crate will be conservative with respect to the minimum\nsupported version of Rust.\n\n\n### Alternatives\n\nNote that as of Rust 1.32, the standard numeric types provide built-in methods\nlike `to_le_bytes` and `from_le_bytes`, which support some of the same use\ncases.\n","funding_links":["https://github.com/sponsors/BurntSushi"],"categories":["Libraries","库 Libraries","Rust","库"],"sub_categories":["Encoding","编码 Encoding","加密 Encoding","编码(Encoding)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBurntSushi%2Fbyteorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBurntSushi%2Fbyteorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBurntSushi%2Fbyteorder/lists"}