mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
bunch of write stuff
This commit is contained in:
parent
4d2ea4ee7c
commit
23ed7b0e4a
12 changed files with 840 additions and 116 deletions
|
|
@ -1,10 +1,15 @@
|
|||
#![allow(dead_code)]
|
||||
#![allow(unreachable_patterns)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use bitbuffer_derive::BitRead;
|
||||
use bitbuffer::{BitReadStream, Endianness};
|
||||
use bitbuffer_derive::{BitWrite, BitWriteSized};
|
||||
|
||||
#[derive(BitRead)]
|
||||
#[derive(BitWrite)]
|
||||
struct TestStruct {
|
||||
foo: u8,
|
||||
str: String,
|
||||
}
|
||||
|
||||
#[derive(BitWrite)]
|
||||
struct UnnamedSize(u8, #[size = 5] String, bool);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue