1234567891011121314151617181920212223242526 |
- /*
- * Copyright (c) 2021-2023, Andreas Kling <kling@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <AK/Vector.h>
- #include <LibJS/Forward.h>
- namespace JS {
- class BlockAllocator {
- public:
- BlockAllocator() = default;
- ~BlockAllocator();
- void* allocate_block(char const* name);
- void deallocate_block(void*);
- private:
- Vector<void*> m_blocks;
- };
- }
|