Пример #1
0
        /// <summary>
        /// Opens an existing <see cref="RgzArchive"/>.
        /// </summary>
        /// <param name="filename">The path to the <see cref="RgzArchive"/>.</param>
        /// <param name="isreadonly">Wether or not to open the file as read only.</param>
        /// <returns></returns>
        public static RgzArchive Open(string filename, bool isreadonly)
        {
            if (string.IsNullOrEmpty(filename))
                throw new RgzException();

            RgzArchive rgz = new RgzArchive();
            rgz.m_FileStream = isreadonly ? File.OpenRead(filename) : File.Open(filename, FileMode.OpenOrCreate);

            return rgz;
        }
Пример #2
0
        /// <summary>
        /// Opens an existing <see cref="RgzArchive"/>.
        /// </summary>
        /// <param name="filename">The path to the <see cref="RgzArchive"/>.</param>
        /// <param name="isreadonly">Wether or not to open the file as read only.</param>
        /// <returns></returns>
        public static RgzArchive Open(string filename, bool isreadonly)
        {
            if (string.IsNullOrEmpty(filename))
            {
                throw new RgzException();
            }

            RgzArchive rgz = new RgzArchive();

            rgz.m_FileStream = isreadonly ? File.OpenRead(filename) : File.Open(filename, FileMode.OpenOrCreate);

            return(rgz);
        }
Пример #3
0
 /// <summary>
 /// Merges another <see cref="RgzArchive"/> with this <see cref="RgzArchive"/>.
 /// </summary>
 /// <param name="rgz">The <see cref="RgzArchive"/> to add the current one.</param>
 public void Merge(RgzArchive rgz)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 /// <summary>
 /// Merges another <see cref="RgzArchive"/> with this <see cref="RgzArchive"/>.
 /// </summary>
 /// <param name="rgz">The <see cref="RgzArchive"/> to add the current one.</param>
 public void Merge(RgzArchive rgz)
 {
     throw new NotImplementedException();
 }