public static void ExportAsync(WorldAnchorTransferBatch transferBatch, SerializationDataAvailableDelegate onDataAvailable, SerializationCompleteDelegate onCompleted) { if (transferBatch == null) { throw new ArgumentNullException("transferBatch"); } if (onDataAvailable == null) { throw new ArgumentNullException("onDataAvailable"); } if (onCompleted == null) { throw new ArgumentNullException("onCompleted"); } ExportAsync_Internal(transferBatch.m_NativePtr, onDataAvailable, onCompleted); }
private static extern void ExportAsync_Internal(IntPtr transferBatch, SerializationDataAvailableDelegate onDataAvailable, SerializationCompleteDelegate onComplete);
private static void InvokeWorldAnchorSerializationDataAvailableDelegate(SerializationDataAvailableDelegate onSerializationDataAvailable, byte[] data) { onSerializationDataAvailable(data); }