forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBootConfigData.cs
More file actions
48 lines (40 loc) · 1.08 KB
/
Copy pathBootConfigData.cs
File metadata and controls
48 lines (40 loc) · 1.08 KB
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
40
41
42
43
44
45
46
47
48
using System;
using System.Runtime.CompilerServices;
using UnityEngine.Scripting;
namespace UnityEngine
{
internal sealed class BootConfigData
{
private IntPtr m_Ptr;
private BootConfigData(IntPtr nativeHandle)
{
if (nativeHandle == IntPtr.Zero)
{
throw new ArgumentException("native handle can not be null");
}
this.m_Ptr = nativeHandle;
}
public void AddKey(string key)
{
BootConfigData.Append(this.m_Ptr, key, null);
}
public void Append(string key, string value)
{
BootConfigData.Append(this.m_Ptr, key, value);
}
public void Set(string key, string value)
{
BootConfigData.Set(this.m_Ptr, key, value);
}
private static BootConfigData Wrap(IntPtr nativeHandle)
{
return new BootConfigData(nativeHandle);
}
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Append(IntPtr nativeHandle, string key, string val);
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Set(IntPtr nativeHandle, string key, string val);
}
}