pub fn qwrite(file: &mut Vec<u8>, buffer: &[u8], n: usize) -> usize {
    file.extend_from_slice(&buffer[0..n]);

    n
}
/*
 * write n bytes from buffer into file
 * returns number of bytes written (=n) if successful, <=0 if not
 */
write n bytes from buffer into file
returns number of bytes written (=n) if successful, <=0 if not
write n bytes from buffer into file returns number of bytes written ( = n ) if successful < = 0 if not
pub fn qwrite(file: &mut Vec<u8>, buffer: &[u8], n: usize) -> usize {
    file.extend_from_slice(&buffer[0..n]);
    n
}
pub fn qwrite ( file : & mut Vec < u8 > , buffer : & [ u8 ] , n : usize ) -> usize { file . extend_from_slice ( & buffer [ 0 .. n ] ) ; n }
write n bytes from buffer into file
 returns number of bytes written (=n) if successful, <=0 if not
write n bytes from buffer into file returns number of bytes written ( = n ) if successful < = 0 if not
file
&mut Vec<u8>
buffer
&[u8]
n
usize
file
&mut Vec<u8>
buffer
&[u8]
n
usize