Hi, Dave Barach:
I want to a realloc funtion like as bollow, the function args doesn't have the
original mem size, and clib_mem_size seems can't return the right memory size.
Is there any way to get the memory size ?
void *my _realloc ( void * p , size_t s)
{
return p ? clib_mem_realloc ( p , s , clib_mem_size ( p )) : clib_mem_alloc ( s
);
}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17300): https://lists.fd.io/g/vpp-dev/message/17300
Mute This Topic: https://lists.fd.io/mt/76466873/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-