ost::MemPagerObject(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– ost::MemPagerObject β€” the ost manual, section 3 (Library Functions Manual) πŸ’–

🌸 NAME 🌸

ost::MemPagerObject β€” bestie, this class is literally the blueprint you inherit from when you want your classes to get constructed inside a memory pager pool. that's the whole vibe. no cap.


✨ SYNOPSIS ✨

#include <misc.h>

🫢 Public Member Functions

  • void * operator new (size_t size, MemPager &pager) β€” grab memory out of a memory pager. iconic allocation behavior.
  • void * operator new[] (size_t size, MemPager &pager) β€” same thing but for an array, allocated out of a memory pager.
  • void operator delete (void *) β€” mempager delete does nothing; the pool purges. it's giving "not my job".
  • void operator delete[] (void *) β€” array mempager delete also does nothing; the pool purges. matching energy, fr fr.

πŸ¦‹ Detailed Description πŸ¦‹

okay so here's the tea: this class exists so you can create derived classes which are constructed within a memory pager pool. that's it, that's the mission statement. πŸ’…

create objects in a memory pager. periodt.

πŸ‘‘ Author

David Sugar dyfet@ostel.com


πŸŽ€ Member Function Documentation πŸŽ€

void ost::MemPagerObject::operator delete (void *) [inline]

Mempager delete does nothing; the pool purges. literally does not lift a finger, and honestly? that's the design. the pool handles the cleanup, so don't come for it. 😭

void ost::MemPagerObject::operator delete[] (void *) [inline]

Array mempager delete does nothing; the pool purges. same story, different brackets. 🌈

void* ost::MemPagerObject::operator new (size_t size, MemPager & pager) [inline]

Allocate memory from a memory pager. ✨

Parameters

  • size β€” the size of new, passed from the operator.
  • pager β€” the pager to allocate from.

void* ost::MemPagerObject::operator new[] (size_t size, MemPager & pager) [inline]

Allocate an array from a memory pager. 🧚

Parameters

  • size β€” the size of new, passed from the operator.
  • pager β€” the pager to allocate from.
🫢 heads up bestie: every delete and delete[] up there is a no-op on purpose. the pool purges, not you. don't be out here expecting free() behavior. πŸ™ˆ

⭐ Author ⭐

Generated automatically by Doxygen for GNU CommonC++ from the source code. (not a human typing this one out, just the robots doing their little thing πŸ€–πŸ’œ)


and that's the whole page, babe β€” no notes, ate and left zero crumbs. this was GNU CommonC++, dated Sun Dec 27 2020, and it's the ost::MemPagerObject(3) page itself. go forth and allocate responsibly. mwah πŸ’‹

πŸ“¦ where this page comes from