dataparser_core 0.1.0

A flexible and efficient binary parsing and serialization library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[macro_export]
macro_rules! impl_write_encodable {
    ($($t:ty),* $(,)?) => {
        $(
        paste::paste! {
            impl $crate::encoder::writers::sync_writer::helpers::WriteEncodable for $t {
                fn to_writer<W: Write>(&self, encoder: &mut DataWriter<W>) -> ParseResult<()> {
                    encoder.[<add_ $t>](*self)
                }
            }
        }
        )*
    };
}