Package org.bytedeco.javacpp.annotation
Annotation Type NoDeallocator
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface NoDeallocator
By default, all allocators attach a deallocator to the peer object on creation. This way, the deallocator automatically gets called during garbage collection. Since an allocator uses thenew
(or for arrays thenew[]
) operator, the deallocator produced uses thedelete
(ordelete[]
) operator. However, if that operator is not accessible, or the native library does not use that operator for object deallocation, we may apply this annotation to an allocator method to prevent it from using these operators.- See Also:
Allocator
,ArrayAllocator
,Generator