tests: add get_alloced_bytes function

ulab-next
Jay Sorg 11 years ago
parent d8bdda582b
commit 1c3d23da37

@ -402,3 +402,13 @@ libmem_clear_flags(void* obj, int flags)
self->flags &= ~flags; self->flags &= ~flags;
return 0; return 0;
} }
/*****************************************************************************/
int
libmem_get_alloced_bytes(void* obj)
{
struct mem_info* self;
self = (struct mem_info*)obj;
return self->total_bytes;
}

@ -14,5 +14,7 @@ int
libmem_set_flags(void* obj, int flags); libmem_set_flags(void* obj, int flags);
int int
libmem_clear_flags(void* obj, int flags); libmem_clear_flags(void* obj, int flags);
int
libmem_get_alloced_bytes(void* obj);
#endif #endif

Loading…
Cancel
Save