public void RelayError(ToxErrorFileSeek error) { if (error != ToxErrorFileSeek.Ok) { Debug.WriteLine("An unexpected error occurred when seeking in a file: " + error); } }
internal static extern bool FileSeek(ToxHandle tox, uint friendNumber, uint fileNumber, ulong position, ref ToxErrorFileSeek error);
public void RelayError(ToxErrorFileSeek error) { if (error != ToxErrorFileSeek.Ok) Debug.WriteLine("An unexpected error occurred when seeking in a file: " + error); }
/// <summary> /// Sends a file seek control command to a friend for a given file transfer. /// </summary> /// <param name="friendNumber">The friend to send the seek command to.</param> /// <param name="fileNumber">The file transfer that this command is meant for.</param> /// <param name="position">The position that the friend should change his stream to.</param> /// <param name="error"></param> /// <returns>True on success.</returns> public bool FileSeek(int friendNumber, int fileNumber, long position, out ToxErrorFileSeek error) { ThrowIfDisposed(); error = ToxErrorFileSeek.Ok; return ToxFunctions.FileSeek(_tox, (uint)friendNumber, (uint)fileNumber, (ulong)position, ref error); }
public static extern Boolean Seek(ToxHandle tox, UInt32 friendNumber, UInt32 fileNumber, UInt64 position, ref ToxErrorFileSeek error);