//============================================================================================================================= // // EasyAR Sense 4.2.0.8700-7bcbc8b1c // Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved. // EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China // and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd. // //============================================================================================================================= #import "easyar/types.oc.h" /// /// JNI utility class. /// It is used in Unity to wrap Java byte array and ByteBuffer. /// It is not supported on iOS. /// @interface easyar_JniUtility : NSObject + (instancetype)new NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE; /// /// Wraps Java's byte[]。 /// + (easyar_Buffer *)wrapByteArray:(void *)bytes readOnly:(bool)readOnly deleter:(void (^)())deleter; /// /// Wraps Java's java.nio.ByteBuffer, which must be a direct buffer. /// + (easyar_Buffer *)wrapBuffer:(void *)directBuffer deleter:(void (^)())deleter; /// /// Get the raw address of a direct buffer of java.nio.ByteBuffer by calling JNIEnv->GetDirectBufferAddress. /// + (void *)getDirectBufferAddress:(void *)directBuffer; @end