Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tranzystorekk/hexers
Rust iterator that encodes bytes into hex chars
https://github.com/tranzystorekk/hexers
hexadecimal iterators rust-library
Last synced: 21 days ago
JSON representation
Rust iterator that encodes bytes into hex chars
- Host: GitHub
- URL: https://github.com/tranzystorekk/hexers
- Owner: tranzystorekk
- Created: 2019-11-19T07:59:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T16:13:52.000Z (over 3 years ago)
- Last Synced: 2023-10-28T06:24:46.366Z (about 1 year ago)
- Topics: hexadecimal, iterators, rust-library
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libhexers - iterate over hex encoded bytes
This library provides utilities for automatically converting a byte
sequence to a hex encoded one via an iterator adaptor.## Example
```rust
use hexers::Hexers;let bytes = [0xbe_u8, 0xef_u8];
let mut it = bytes.iter().copied().hexed();assert_eq!(it.next(), Some('b'));
assert_eq!(it.next(), Some('e'));
assert_eq!(it.next(), Some('e'));
assert_eq!(it.next(), Some('f'));
```