You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this will be the case, it is possible to have in a future release a couple of examples on how
to use the library? Especially in regards to the initialization step.
The text was updated successfully, but these errors were encountered:
void main()
{
void *mem= malloc(0x10000);
tlsf_t* tlsf = tlsf_create_with_pool(mem, 0x10000);
// At this point you can use the malloc/free function from tlsf:
void *tmem= tlsf_malloc(tlsf, 0x1000); // allocate 4096bytes
printf("Memory at: %lx, block size: %lx\n, tmem, tlsf_block_size(tmem));
//
tlsf_free(tlsf, tmem); // Free the 4k
free(mem);
}
Hi Matt,
If this will be the case, it is possible to have in a future release a couple of examples on how
to use the library? Especially in regards to the initialization step.
The text was updated successfully, but these errors were encountered: