pub fn decode(src: &[u8], dst: &mut Vec<u64>) {
    let mut i = 0;
    let mut j = 0;
    let mut buf: [u8; 8] = [0; 8];
    while i < src.len() {
        if dst.len() < j + 240 {
            dst.resize(j + 240, 0); // may need 240 capacity
        }
        buf.copy_from_slice(&src[i..i + 8]);
        j += decode_value(u64::from_be_bytes(buf), &mut dst[j..]);
        i += 8;
    }
    dst.truncate(j);
}
/// decode decodes and unpacks the binary-encoded values stored in src into
/// dst.
decode decodes and unpacks the binary-encoded values stored in src into
dst.
decode decodes and unpacks the binary - encoded values stored in src into dst .
pub fn decode(src: &[u8], dst: &mut Vec<u64>) {
    let mut i = 0;
    let mut j = 0;
    let mut buf: [u8; 8] = [0; 8];
    while i < src.len() {
        if dst.len() < j + 240 {
            dst.resize(j + 240, 0); // may need 240 capacity
        }
        buf.copy_from_slice(&src[i..i + 8]);
        j += decode_value(u64::from_be_bytes(buf), &mut dst[j..]);
        i += 8;
    }
    dst.truncate(j);
}
pub fn decode ( src : & [ u8 ] , dst : & mut Vec < u64 > ) { let mut i = 0 ; let mut j = 0 ; let mut buf : [ u8 ; 8 ] = [ 0 ; 8 ] ; while i < src . len ( ) { if dst . len ( ) < j + 240 { dst . resize ( j + 240 , 0 ) ; // may need 240 capacity } buf . copy_from_slice ( & src [ i .. i + 8 ] ) ; j += decode_value ( u64 :: from_be_bytes ( buf ) , & mut dst [ j .. ] ) ; i += 8 ; } dst . truncate ( j ) ; }
decode decodes and unpacks the binary-encoded values stored in src into
dst.
decode decodes and unpacks the binary - encoded values stored in src into dst .
src
&[u8]
dst
&mut Vec<u64>
src
&[u8]
dst
&mut Vec<u64>