integer-encoding-rs icon indicating copy to clipboard operation
integer-encoding-rs copied to clipboard

Integer encoding for primitive integer types: Supports varint/varint+zigzag and fixed-length integer encoding and decoding, and provides synchronous and asynchronous Write/Read types for easily writin...

Results 5 integer-encoding-rs issues
Sort by recently updated
recently updated
newest added

# Rationale `[0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x02]` is the encoding of `u64::MAX`. This does not return `None` when decoding even though it should. This PR...

`[0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x02]` is the encoding of `u64::MAX`. This does not return `None` when decoding even though it should. I have implemented a...

I was reviewing why we could not use `forbid(unsafe_code)` as part of #28, and I _think_ that we can trigger UB in safe Rust by an incorrect implementation of `FixedInt`:...

The crate fulfills this invariant, maybe we could add it?

The build fails for the s390x architecture, might be a problem with any big-endian architecture. ``` failures: ---- fixed_tests::tests::test_i16_enc stdout ---- thread 'fixed_tests::tests::test_i16_enc' panicked at 'assertion failed: `(left == right)`...