BurntSushi/byteorder

Feature request: Add write_uXX_from to WriteBytesExt trait

Open

#155 ouverte le 8 nov. 2019

Voir sur GitHub
 (4 commentaires) (3 réactions) (0 assignés)Rust (156 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 080 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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?

Guide contributeur