請問這個C++類別的用途

這是別人程式中的一個類別,一直不太懂它的用途 class RTPMemoryManager { public: RTPMemoryManager() { } virtual ~RTPMemoryManager(){ } /** Called to allocate \c numbytes of memory.*/ virtual void *AllocateBuffer(size_t numbytes, int memtype) = 0; /** Frees the previously allocated memory... show more 這是別人程式中的一個類別,一直不太懂它的用途

class RTPMemoryManager
{
public:
RTPMemoryManager() { }
virtual ~RTPMemoryManager(){ }

/** Called to allocate \c numbytes of memory.*/
virtual void *AllocateBuffer(size_t numbytes, int memtype) = 0;

/** Frees the previously allocated memory block \c buffer */
virtual void FreeBuffer(void *buffer) = 0;
};
1 answer 1