BurntSushi/byteorder

Feature request: Add write_uXX_from to WriteBytesExt trait

Open

#155 opened on Nov 8, 2019

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

Repository metrics

Stars
 (1,080 stars)
PR merge metrics
 (No merged PRs in 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?

Contributor guide