Package org.bytedeco.javacpp.annotation
Annotation Type ArrayAllocator
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface ArrayAllocatorAn annotation indicating that a method should behave like an array allocator. However, methods with signaturenative void allocateArray(int)are recognized as array allocators even without annotation. This behavior can be changed by annotating the method with theFunctionannotation.In a nutshell, an array allocator uses the C++
new[]operator, and initializes thePointer.addressas well as thePointer.deallocatorwithNativeDeallocator, based on thedelete[]operator, if not additionally annotated withNoDeallocator.- See Also:
Pointer.init(long, long, long, long),Generator