pub fn do_serialize(&self, fd: &[u8], shared: &[u8]) -> String {
        match self.generator.serialize(self.data.data(), fd, shared)
            .iter()
            .fold(
                (String::from(""), String::from("")),
                |(pre, post), ref info| {
                    if 0 == info.prefix.len() {
                        (pre, post)
                    } else {
                        (pre + &info.prefix + &info.offset.to_string() + ", ",
                        post + ")")
                    }
                }) {
            (prefix, postfix) => build_arg(&self.atype, prefix, postfix, self.data.data()),
        }
    }
/// walk trough all generators and grab all their specifics for generating this arg
/// and at the end append current data
///
/// + why specifics ?
///     - think about how to PoC (seperate miniprogram) will interpret file descriptor f.e.
///     - that is essential to connecting various calls
///     - file descriptor is example, index or returned unique identifier are the same issue
///     - pointers inside structure -> we need alloc new memory in poc, ..
walk trough all generators and grab all their specifics for generating this arg
and at the end append current data

+ why specifics .
think about how to PoC (seperate miniprogram) will interpret file descriptor f.e.
that is essential to connecting various calls
file descriptor is example, index or returned unique identifier are the same issue
pointers inside structure -> we need alloc new memory in poc.
walk trough all generators and grab all their specifics for generating this arg and at the end append current data + why specifics . think about how to PoC ( seperate miniprogram ) will interpret file descriptor f . e . that is essential to connecting various calls file descriptor is example index or returned unique identifier are the same issue pointers inside structure - > we need alloc new memory in poc .
pub fn do_serialize(&self, fd: &[u8], shared: &[u8]) -> String {
        match self.generator.serialize(self.data.data(), fd, shared)
            .iter()
            .fold(
                (String::from(""), String::from("")),
                |(pre, post), ref info| {
                    if 0 == info.prefix.len() {
                        (pre, post)
                    } else {
                        (pre + &info.prefix + &info.offset.to_string() + ", ",
                        post + ")")
                    }
                }) {
            (prefix, postfix) => build_arg(&self.atype, prefix, postfix, self.data.data()),
        }
    }
pub fn do_serialize ( & self , fd : & [ u8 ] , shared : & [ u8 ] ) -> String { match self . generator . serialize ( self . data . data ( ) , fd , shared ) . iter ( ) . fold ( ( String :: from ( " " ) , String :: from ( " " ) ) , | ( pre , post ) , ref info | { if 0 == info . prefix . len ( ) { ( pre , post ) } else { ( pre + & info . prefix + & info . offset . to_string ( ) + " " , post + " " ) } } ) { ( prefix , postfix ) => build_arg ( & self . atype , prefix , postfix , self . data . data ( ) ) , } }
walk trough all generators and grab all their specifics for generating this arg
and at the end append current data
walk trough all generators and grab all their specifics for generating this arg and at the end append current data
&self
fd
&[u8]
shared
&[u8]
&self
fd
&[u8]
shared
&[u8]