19 lines
451 B
C
19 lines
451 B
C
|
|
#ifndef HAKMEM_TINY_QUERY_API_H
|
||
|
|
#define HAKMEM_TINY_QUERY_API_H
|
||
|
|
|
||
|
|
#include <stddef.h>
|
||
|
|
|
||
|
|
// Phase 2B-1: Query API
|
||
|
|
// Validation and introspection functions (cold path)
|
||
|
|
|
||
|
|
// Check if pointer is managed by Tiny allocator
|
||
|
|
int hak_tiny_is_managed(void* ptr);
|
||
|
|
|
||
|
|
// Check if pointer is in SuperSlab region
|
||
|
|
int hak_tiny_is_managed_superslab(void* ptr);
|
||
|
|
|
||
|
|
// Get usable size for allocation
|
||
|
|
size_t hak_tiny_usable_size(void* ptr);
|
||
|
|
|
||
|
|
#endif // HAKMEM_TINY_QUERY_API_H
|