BurntSushi/byteorder

Feature request: Add write_uXX_from to WriteBytesExt trait

Open

#155 建立於 2019年11月8日

在 GitHub 查看
 (4 留言) (3 反應) (0 負責人)Rust (156 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (1,080 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

貢獻者指南