public static iPhoneFile OpenRead(iOSDeviceMK phone, string path) { throw new NotImplementedException(); /* return Open(phone, path, FileAccess.Read); */ }
public static unsafe iPhoneFile Open(iOSDeviceMK phone, string path, FileAccess openmode) { throw new NotImplementedException(); /* * long num; * OpenMode none = OpenMode.None; * switch (openmode) * { * case FileAccess.Read: * none = OpenMode.Read; * break; * * case FileAccess.Write: * none = OpenMode.Write; * break; * * case FileAccess.ReadWrite: * throw new NotImplementedException("Read+Write not (yet) implemented"); * } * string str = phone.FullPath(phone.GetCurrentDirectory(), path); * int num2 = MobileDevice.AFCFileRefOpen(phone.AFCHandle, str, (int) none, 0, out num); * if (num2 != 0) * { * throw new IOException("AFCFileRefOpen failed with error " + num2.ToString()); * } * return new iPhoneFile(phone, num, none); */ }
public static unsafe iPhoneFile Open(iOSDeviceMK phone, string path, FileAccess openmode) { throw new NotImplementedException(); /* long num; OpenMode none = OpenMode.None; switch (openmode) { case FileAccess.Read: none = OpenMode.Read; break; case FileAccess.Write: none = OpenMode.Write; break; case FileAccess.ReadWrite: throw new NotImplementedException("Read+Write not (yet) implemented"); } string str = phone.FullPath(phone.GetCurrentDirectory(), path); int num2 = MobileDevice.AFCFileRefOpen(phone.AFCHandle, str, (int) none, 0, out num); if (num2 != 0) { throw new IOException("AFCFileRefOpen failed with error " + num2.ToString()); } return new iPhoneFile(phone, num, none); */ }
public static iPhoneFile OpenRead(iOSDeviceMK phone, string path) { throw new NotImplementedException(); /* * return Open(phone, path, FileAccess.Read); */ }
static void Main(string[] args) { iph = new iOSDeviceMK(); Console.Clear(); Console.WriteLine(@"MK.MobileDevice.Lite (c) 2015 MK Industries and ExaPhaser Industries Created and Developed by MK and ExaPhaser in collaboration. Source code is available on GitHub at http://github.com/mkindustries. "); iph.Connect += Iph_Connect; iph.Disconnect += Iph_Disconnect; while (true) { } }
public static iPhoneFile OpenWrite(iOSDeviceMK phone, string path) { return(Open(phone, path, FileAccess.Write)); }
private iPhoneFile(iOSDeviceMK phone, long handle, OpenMode mode) { this.phone = phone; this.mode = mode; this.handle = handle; }
public static iPhoneFile OpenWrite(iOSDeviceMK phone, string path) { return Open(phone, path, FileAccess.Write); }