forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDownloadHandlerScript.cs
More file actions
30 lines (27 loc) · 850 Bytes
/
Copy pathDownloadHandlerScript.cs
File metadata and controls
30 lines (27 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using UnityEngine.Scripting;
namespace UnityEngine.Networking
{
[StructLayout(LayoutKind.Sequential)]
public class DownloadHandlerScript : DownloadHandler
{
public DownloadHandlerScript()
{
base.InternalCreateScript();
}
public DownloadHandlerScript(byte[] preallocatedBuffer)
{
if (preallocatedBuffer == null || preallocatedBuffer.Length < 1)
{
throw new ArgumentException("Cannot create a preallocated-buffer DownloadHandlerScript backed by a null or zero-length array");
}
base.InternalCreateScript();
this.InternalSetPreallocatedBuffer(preallocatedBuffer);
}
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void InternalSetPreallocatedBuffer(byte[] buffer);
}
}