Exemple #1
0
            public override long Seek(long offset, System.IO.SeekOrigin origin)
            {
                switch (origin)
                {
                case System.IO.SeekOrigin.Begin:
                    Position = offset;
                    break;

                case System.IO.SeekOrigin.Current:
                    Position += offset;
                    break;

                case System.IO.SeekOrigin.End:
                    Position = entry.getSize() + offset;
                    break;
                }
                return(position);
            }
Exemple #2
0
            public override long Seek(long offset, System.IO.SeekOrigin origin)
            {
#if !WINRT
                switch (origin)
                {
                case System.IO.SeekOrigin.Begin:
                    Position = offset;
                    break;

                case System.IO.SeekOrigin.Current:
                    Position += offset;
                    break;

                case System.IO.SeekOrigin.End:
                    Position = entry.getSize() + offset;
                    break;
                }
                return(position);
#else
                throw new NotImplementedException();
#endif
            }