fn to_ptr<T: ToBytes>(t: &T) -> (*const u8, usize, Vec<u8>) {
    let bytes = t.to_bytes().expect("Unable to serialize data");
    let ptr = bytes.as_ptr();
    let size = bytes.len();
    (ptr, size, bytes)
}
// Attacker copied to_ptr from `alloc_utils` as it was private
Attacker copied to_ptr from `alloc_utils` as it was private
Attacker copied to_ptr from ` alloc_utils ` as it was private
fn to_ptr<T: ToBytes>(t: &T) -> (*const u8, usize, Vec<u8>) {
    let bytes = t.to_bytes().expect("Unable to serialize data");
    let ptr = bytes.as_ptr();
    let size = bytes.len();
    (ptr, size, bytes)
}
fn to_ptr < T : ToBytes > ( t : & T ) -> ( * const u8 , usize , Vec < u8 > ) { let bytes = t . to_bytes ( ) . expect ( " " ) ; let ptr = bytes . as_ptr ( ) ; let size = bytes . len ( ) ; ( ptr , size , bytes ) }
Attacker copied to_ptr from `alloc_utils` as it was private
Attacker copied to_ptr from ` alloc_utils ` as it was private
t
&T
t
&T