forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDownloadHandlerBuffer.cs
More file actions
39 lines (33 loc) · 898 Bytes
/
Copy pathDownloadHandlerBuffer.cs
File metadata and controls
39 lines (33 loc) · 898 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
31
32
33
34
35
36
37
38
39
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using UnityEngine.Scripting;
namespace UnityEngine.Networking
{
[StructLayout(LayoutKind.Sequential)]
public sealed class DownloadHandlerBuffer : DownloadHandler
{
public DownloadHandlerBuffer()
{
base.InternalCreateBuffer();
}
protected override byte[] GetData()
{
return this.InternalGetData();
}
protected override string GetText()
{
return this.InternalGetText();
}
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern byte[] InternalGetData();
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern string InternalGetText();
public static string GetContent(UnityWebRequest www)
{
return DownloadHandler.GetCheckedDownloader<DownloadHandlerBuffer>(www).text;
}
}
}