Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
697 B

  1. namespace Oculus.Platform.Models
  2. {
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. using Oculus.Platform.Models;
  8. using UnityEngine;
  9. public class HttpTransferUpdate
  10. {
  11. public readonly UInt64 ID;
  12. public readonly byte[] Payload;
  13. public readonly bool IsCompleted;
  14. public HttpTransferUpdate(IntPtr o)
  15. {
  16. ID = CAPI.ovr_HttpTransferUpdate_GetID(o);
  17. IsCompleted = CAPI.ovr_HttpTransferUpdate_IsCompleted(o);
  18. long size = (long) CAPI.ovr_HttpTransferUpdate_GetSize(o);
  19. Payload = new byte[size];
  20. Marshal.Copy(CAPI.ovr_Packet_GetBytes(o), Payload, 0, (int) size);
  21. }
  22. }
  23. }