Beispiel #1
0
 public static void ImportAsync(byte[] serializedData, int offset, int length, WorldAnchorTransferBatch.DeserializationCompleteDelegate onComplete)
 {
     if (serializedData == null)
     {
         throw new ArgumentNullException("serializedData");
     }
     if (serializedData.Length < 1)
     {
         throw new ArgumentException("serializedData is empty!", "serializedData");
     }
     if (offset + length > serializedData.Length)
     {
         throw new ArgumentException("offset + length is greater that serializedData.Length!");
     }
     if (onComplete == null)
     {
         throw new ArgumentNullException("onComplete");
     }
     WorldAnchorTransferBatch.ImportAsync_Internal(serializedData, offset, length, onComplete);
 }
Beispiel #2
0
 private static extern void ImportAsync_Internal(byte[] serializedData, int offset, int length, WorldAnchorTransferBatch.DeserializationCompleteDelegate onComplete);
Beispiel #3
0
 public static void ImportAsync(byte[] serializedData, WorldAnchorTransferBatch.DeserializationCompleteDelegate onComplete)
 {
     WorldAnchorTransferBatch.ImportAsync(serializedData, 0, serializedData.Length, onComplete);
 }
Beispiel #4
0
        private static void InvokeWorldAnchorDeserializationCompleteDelegate(WorldAnchorTransferBatch.DeserializationCompleteDelegate onDeserializationComplete, SerializationCompletionReason completionReason, IntPtr nativePtr)
        {
            WorldAnchorTransferBatch deserializedTransferBatch = new WorldAnchorTransferBatch(nativePtr);

            onDeserializationComplete(completionReason, deserializedTransferBatch);
        }