forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindowsFile.bindings.cs
More file actions
23 lines (18 loc) · 860 Bytes
/
Copy pathWindowsFile.bindings.cs
File metadata and controls
23 lines (18 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using UnityEngine.Bindings;
namespace UnityEngine.Windows
{
public static class File
{
[NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsFileBindings.h")]
public extern static byte[] ReadAllBytes(string path);
[NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsFileBindings.h")]
public extern static void WriteAllBytes(string path, byte[] bytes);
[NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsFileBindings.h")]
public extern static bool Exists(string path);
[NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsFileBindings.h")]
public extern static void Delete(string path);
}
}