42_malloc/src/chunk_manager.h

8 lines
281 B
C
Raw Normal View History

2024-07-30 03:28:43 -04:00
#pragma once
#include "chunk.h"
2024-07-30 08:54:01 -04:00
void chunk_iter(chunk_t *root, void (*f)(chunk_t*));
2024-07-30 13:16:15 -04:00
void chunk_merge(chunk_t *first, chunk_t *second);
int get_append_unused_chunk(void *root, size_t size, chunk_t *result, size_t new_block_size);
int chunk_split(chunk_t *chunk, size_t new_size);