|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Go to the source code of this file.
Classes | |
| class | juce::ScopedAutoReleasePool |
| A handy C++ wrapper that creates and deletes an NSAutoreleasePool object using RAII. More... | |
Namespaces | |
| namespace | juce |
| JUCE Namespace. | |
Macros | |
| #define | JUCE_AUTORELEASEPOOL |
| A macro that can be used to easily declare a local ScopedAutoReleasePool object for RAII-based obj-C autoreleasing. | |
| #define | juce_UseDebuggingNewOperator |
| (Deprecated) This was a Windows-specific way of checking for object leaks - now please use the JUCE_LEAK_DETECTOR instead. | |
Functions | |
| void | juce::zeromem (void *memory, size_t numBytes) noexcept |
| Fills a block of memory with zeros. | |
| template<typename Type > | |
| void | juce::zerostruct (Type &structure) noexcept |
| Overwrites a structure or object with zeros. | |
| template<typename Type > | |
| void | juce::deleteAndZero (Type &pointer) |
| Delete an object pointer, and sets the pointer to null. | |
| template<typename Type , typename IntegerType > | |
| Type * | juce::snapPointerToAlignment (Type *basePointer, IntegerType alignmentBytes) noexcept |
| A handy function to round up a pointer to the nearest multiple of a given number of bytes. | |
| template<typename Type1 , typename Type2 > | |
| int | juce::getAddressDifference (Type1 *pointer1, Type2 *pointer2) noexcept |
| A handy function which returns the difference between any two pointers, in bytes. | |
| template<class Type > | |
| Type * | juce::createCopyIfNotNull (const Type *objectToCopy) |
| If a pointer is non-null, this returns a new copy of the object that it points to, or safely returns nullptr if the pointer is null. | |
| template<typename Type > | |
| Type | juce::readUnaligned (const void *srcPtr) noexcept |
| A handy function to read un-aligned memory without a performance penalty or bus-error. | |
| template<typename Type > | |
| void | juce::writeUnaligned (void *dstPtr, Type value) noexcept |
| A handy function to write un-aligned memory without a performance penalty or bus-error. | |
| template<typename Type > | |
| Type | juce::unalignedPointerCast (void *ptr) noexcept |
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes arises when casting pointers to types with different alignment. | |
| template<typename Type > | |
| Type | juce::unalignedPointerCast (const void *ptr) noexcept |
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes arises when casting pointers to types with different alignment. | |
| template<typename Type , typename IntegerType > | |
| Type * | juce::addBytesToPointer (Type *basePointer, IntegerType bytes) noexcept |
| A handy function which adds a number of bytes to any type of pointer and returns the result. | |
| template<typename Type , typename IntegerType > | |
| const Type * | juce::addBytesToPointer (const Type *basePointer, IntegerType bytes) noexcept |
| A handy function which adds a number of bytes to any type of pointer and returns the result. | |
| template<typename T > | |
| std::unique_ptr< T > | juce::rawToUniquePtr (T *ptr) |
| Converts an owning raw pointer into a unique_ptr, deriving the type of the unique_ptr automatically. | |
| #define JUCE_AUTORELEASEPOOL |
A macro that can be used to easily declare a local ScopedAutoReleasePool object for RAII-based obj-C autoreleasing.
Because this may use the @autoreleasepool syntax, you must follow the macro with a set of braces to mark the scope of the pool.
Definition at line 154 of file juce_Memory.h.
| #define juce_UseDebuggingNewOperator |
(Deprecated) This was a Windows-specific way of checking for object leaks - now please use the JUCE_LEAK_DETECTOR instead.
Definition at line 185 of file juce_Memory.h.