BurntSushi/byteorder

Feature request: Add write_uXX_from to WriteBytesExt trait

Open

#155 aberto em 8 de nov. de 2019

Ver no GitHub
 (4 comments) (3 reactions) (0 assignees)Rust (156 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (1.080 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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?

Guia do colaborador