24 lines
546 B
C#
24 lines
546 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Oculus.Platform.Models
|
|
{
|
|
public class HttpTransferUpdate
|
|
{
|
|
public readonly ulong ID;
|
|
|
|
public readonly byte[] Payload;
|
|
|
|
public readonly bool IsCompleted;
|
|
|
|
public HttpTransferUpdate(IntPtr o)
|
|
{
|
|
ID = CAPI.ovr_HttpTransferUpdate_GetID(o);
|
|
IsCompleted = CAPI.ovr_HttpTransferUpdate_IsCompleted(o);
|
|
long num = (long)(ulong)CAPI.ovr_HttpTransferUpdate_GetSize(o);
|
|
Payload = new byte[num];
|
|
Marshal.Copy(CAPI.ovr_Packet_GetBytes(o), Payload, 0, (int)num);
|
|
}
|
|
}
|
|
}
|