You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/mem.cpp

24 lines
311 B
C++

7 years ago
#include <llarp/mem.h>
7 years ago
6 years ago
namespace llarp
{
void Zero(void * ptr, size_t sz)
{
uint8_t * p = (uint8_t *) ptr;
while(sz--)
{
*p = 0;
++p;
}
}
}
6 years ago
7 years ago
extern "C" {
6 years ago
void llarp_mem_slab(struct llarp_alloc * mem, uint32_t * buf, size_t sz)
{
// not implemented
abort();
}
7 years ago
}