Sha256: 3fa75de4d882f725bcedaf2515d414f966f1575e89d306657559ac435b53d59f
Contents?: true
Size: 516 Bytes
Versions: 50
Compression:
Stored size: 516 Bytes
Contents
#[derive(Debug, PartialEq)] pub enum Error { IncompleteNumber, Overflow, } /// Convert a list of numbers to a stream of bytes encoded with variable length encoding. pub fn to_bytes(values: &[u32]) -> Vec<u8> { unimplemented!("Convert the values {:?} to a list of bytes", values) } /// Given a stream of bytes, extract all numbers which are encoded in there. pub fn from_bytes(bytes: &[u8]) -> Result<Vec<u32>, Error> { unimplemented!("Convert the list of bytes {:?} to a list of numbers", bytes) }
Version data entries
50 entries across 50 versions & 1 rubygems