Browse Source

Move pinvoke methods

Josh Engebretson 9 years ago
parent
commit
7b9975d0aa
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Script/AtomicNET/AtomicNET/IO/File.cs

+ 4 - 4
Script/AtomicNET/AtomicNET/IO/File.cs

@@ -7,9 +7,6 @@ namespace AtomicEngine
     public partial class File : AObject, Deserializer, Serializer
     {
 
-        [DllImport(Constants.LIBNAME, CallingConvention = CallingConvention.Cdecl)]
-        internal static extern uint csi_Atomic_File_Read(IntPtr self, IntPtr dest, uint size);
-
 
         /// <summary>
         /// Read bytes from the file. Return array of bytes of the length actually read (can be 0 length)
@@ -39,7 +36,7 @@ namespace AtomicEngine
         }
 
         [DllImport(Constants.LIBNAME, CallingConvention = CallingConvention.Cdecl)]
-        internal static extern uint csi_Atomic_File_Write(IntPtr self, IntPtr data, uint offset, uint size);
+        internal static extern uint csi_Atomic_File_Read(IntPtr self, IntPtr dest, uint size);
 
         /// <summary>
         /// Write bytes to the file, with optional offset into array and count of bytes to write. 
@@ -72,6 +69,9 @@ namespace AtomicEngine
 
         }
 
+        [DllImport(Constants.LIBNAME, CallingConvention = CallingConvention.Cdecl)]
+        internal static extern uint csi_Atomic_File_Write(IntPtr self, IntPtr data, uint offset, uint size);
+
 
     };