femtopb 0.2.0

A no-std, no-alloc set of tools for protobuf encoding and decoding
Documentation
1
2
3
4
5
6
7
8
crate::runtime::macros::varint!('a, i64, crate::item_encoding::SInt64,
    to_uint64: |value| {
        ((value << 1) ^ (value >> 63)) as u64
    },
    from_uint64: |value| {
        ((value >> 1) as i64) ^ (-((value & 1) as i64))
    }
);