mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
add main to readme example
This commit is contained in:
parent
b89c4782e8
commit
4799d26f0b
1 changed files with 19 additions and 17 deletions
|
|
@ -52,6 +52,7 @@ struct ComplexType {
|
|||
third: bool,
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let bytes = vec![
|
||||
0b1011_0101, 0b0110_1010, 0b1010_1100, 0b1001_1001,
|
||||
0b1001_1001, 0b1001_1001, 0b1001_1001, 0b1110_0111
|
||||
|
|
@ -69,6 +70,7 @@ write_stream.write(&ComplexType {
|
|||
second: 12,
|
||||
third: true
|
||||
})?;
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue