UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
M4Memory.h File Reference
#include "vdecmpeg4.h"
#include "M4Global.h"
#include "M4MemOps.h"

Go to the source code of this file.

Classes

class  vdecmpeg4::M4MemHandler
 

Namespaces

namespace  vdecmpeg4
 

Macros

#define M4_MEMORY_HANDLER
 

Macro Definition Documentation

◆ M4_MEMORY_HANDLER

#define M4_MEMORY_HANDLER
Value:
public: \
void* operator new(size_t) \
{ \
M4CHECK(false && "new not allowed"); \
return (void*)1; \
} \
void operator delete[](void*) \
{ \
M4CHECK(false && "delete[] not allowed"); \
} \
void* operator new[](size_t) \
{ \
M4CHECK(false && "new[] not allowed"); \
return (void*)1; \
}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127

We use the following two macros for 'automatic' overloading of the new and delete operations. The effect is a mapping of all memory allocations to the user-established handler