BurntSushi/byteorder

Feature request: Add write_uXX_from to WriteBytesExt trait

開放

#155 建立於 2019年11月8日

 (4 則留言) (3 個反應) (0 位負責人)Rust (156 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (1,080 顆星)
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?

貢獻者指南