Beispiel #1
0
        public override unsafe long Seek(long offset, SeekOrigin origin)
        {
            int num = MobileDevice.AFCFileRefSeek(this.phone.AFCHandle, this.handle, (uint)offset, 0);

            Console.WriteLine("ret = {0}", num);
            return(offset);
        }
Beispiel #2
0
        /// <summary>
        /// Sets the position within the current stream
        /// </summary>
        /// <param name="offset">A byte offset relative to the <c>origin</c> parameter</param>
        /// <param name="origin">A value of type <see cref="SeekOrigin"/> indicating the reference point used to obtain the new position</param>
        /// <returns>The new position within the stream</returns>
        public override long Seek(long offset, SeekOrigin origin)
        {
            int ret;

            ret = MobileDevice.AFCFileRefSeek(phone.AFCHandle, handle, (uint)offset, 0);
            Console.WriteLine("ret = {0}", ret);
            return(offset);
        }