Package org.bytedeco.javacpp.annotation
Annotation Type ArrayAllocator
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface ArrayAllocator
An 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 theFunction
annotation.In a nutshell, an array allocator uses the C++
new[]
operator, and initializes thePointer.address
as well as thePointer.deallocator
withNativeDeallocator
, based on thedelete[]
operator, if not additionally annotated withNoDeallocator
.- See Also:
Pointer.init(long, long, long, long)
,Generator