mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibSQL: Rename Heap
constants to match our code style
No functional changes. The constants are moved to constexpr variables inside `Heap`.
This commit is contained in:
parent
fcd35e824c
commit
194f846f12
8 changed files with 24 additions and 26 deletions
|
@ -104,7 +104,7 @@ public:
|
|||
void serialize(Serializer&) const;
|
||||
[[nodiscard]] u32 number_of_pointers() const { return min(max_pointers_in_node(), m_hash_index.size() - m_offset); }
|
||||
[[nodiscard]] bool is_last() const { return m_is_last; }
|
||||
static constexpr size_t max_pointers_in_node() { return (BLOCKSIZE - 3 * sizeof(u32)) / (2 * sizeof(u32)); }
|
||||
static constexpr size_t max_pointers_in_node() { return (Heap::BLOCK_SIZE - 3 * sizeof(u32)) / (2 * sizeof(u32)); }
|
||||
|
||||
private:
|
||||
HashIndex& m_hash_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue