BurntSushi/byteorder

Feature request: Add write_uXX_from to WriteBytesExt trait

Aperta

#155 aperta il 8 nov 2019

 (4 commenti) (3 reazioni) (0 assegnatari)Rust (156 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1080 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I write some kind of protocol parser and I use next code to read protocol data:

reader.read_u32_into::<LittleEndian>(&mut buffer);

I would like to use the same logic for writer:

writer.write_u32_from::<LittleEndian>(&buffer);

Is that already possible? Or it needs implementation?

Guida contributor