// // SharedArray.h // VisionCamera // // Created by Marc Rousavy on 12.01.24. // Copyright © 2024 mrousavy. All rights reserved. // #pragma once #import "VisionCameraProxy.h" #import #ifdef __cplusplus #import "../../cpp/MutableRawBuffer.h" #import using namespace facebook; #endif NS_ASSUME_NONNULL_BEGIN @interface SharedArray : NSObject - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithProxy:(VisionCameraProxyHolder*)proxy size:(NSInteger)size; #ifdef __cplusplus - (instancetype)initWithRuntime:(jsi::Runtime&)runtime arrayBuffer:(std::shared_ptr)arrayBuffer; - (std::shared_ptr)arrayBuffer; #endif @property(nonatomic, readonly, nonnull) uint8_t* data; @property(nonatomic, readonly) NSInteger size; @end NS_ASSUME_NONNULL_END