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);
|
2024-07-31 09:04:58 -04:00
|
|
|
int chunk_split(chunk_t *chunk, size_t new_size);
|
|
|
|
int get_chunk(void *data_start, chunk_t *result, int *category);
|