You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just define u64 and i64 in Integer. How to read u32 in the serialization buffer?
pub enum Integer {
/// Unsigned int representation
Uint64(u64),
/// Signed int representation
Int64(i64),
}
// I try to read, just support u64?
let restored = Message::unpack(&mut cursor).expect("Message unpack failed");
restored.as_integer().expect("s").as_u64();
The text was updated successfully, but these errors were encountered:
Just define
u64
andi64
in Integer. How to read u32 in the serialization buffer?The text was updated successfully, but these errors were encountered: