Skip to content

Commit

Permalink
Add two missing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
googleben committed Feb 4, 2025
1 parent b980707 commit e72a16a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/RED4ext/CNamePool-inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ RED4EXT_INLINE const RED4ext::CNamePoolAllocator::CNamePoolNodeAllocWrapper* RED
return GetWrapper(inner.next);
}

RED4EXT_INLINE const RED4ext::CNamePoolAllocator::CNamePoolNodeAllocWrapper& RED4ext::CNamePoolAllocator::
CNamePoolNodeAllocWrapper::GetWrapper(const CNamePoolNode& aNode)
{
return *GetWrapper(&aNode);
}

RED4EXT_INLINE const RED4ext::CNamePoolAllocator::CNamePoolNodeAllocWrapper* RED4ext::CNamePoolAllocator::
CNamePoolNodeAllocWrapper::GetWrapper(const CNamePoolNode* aNode)
{
return std::bit_cast<const CNamePoolNodeAllocWrapper*>(std::bit_cast<uintptr_t>(aNode) -
offsetof(CNamePoolNodeAllocWrapper, inner));
}

RED4EXT_INLINE RED4ext::CNamePoolAllocator::Iterator& RED4ext::CNamePoolAllocator::Iterator::operator++()
{
m_node = m_node->NextInList();
Expand Down

0 comments on commit e72a16a

Please sign in to comment.