public UnityHttpRequest(string requestUriString, byte[] preallocatedBuffer) : base(requestUriString) { if (preallocatedBuffer == null || preallocatedBuffer.Length == 0) { DownloadHandler = new DownloadHandlerScript(); } else { DownloadHandler = new DownloadHandlerScript(preallocatedBuffer); } CanDownloadData = true; }
private extern static IntPtr CreatePreallocated(DownloadHandlerScript obj, byte[] preallocatedBuffer);
private extern static IntPtr Create(DownloadHandlerScript obj);