Beispiel #1
0
        private string path; // The file path for the entry

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Creates a new instance of ArchiveEntry
        /// </summary>
        /// <param name="archive">The archive this entry belongs to.</param>
        /// <param name="offset">The offset of the entry within the archive.</param>
        /// <param name="length">The size of the entry within the archive.</param>
        /// <param name="name">The file name of the entry.</param>
        internal ArchiveEntry(ArchiveReader archiveReader, long offset, int length, string name)
        {
            mode = Mode.Read;
            this.archiveReader = archiveReader;

            this.offset = offset;
            this.length = length;

            this.name = name;
            this.path = String.Empty;
        }
Beispiel #2
0
        private List <ArchiveEntry> entries; // Archive entries

        /// <summary>
        /// Initalizes a new instance of the ArchiveEntryCollection class.
        /// </summary>
        /// <param name="owner">The ArchiveReader that owns this collection.</param>
        /// <param name="numEntries">The total number of entries in the archive.</param>
        public ArchiveEntryCollection(ArchiveReader owner, int numEntries)
        {
            ownerReader = owner;

            entries = new List <ArchiveEntry>(numEntries);
        }
Beispiel #3
0
        private ArchiveWriter ownerWriter; // Archive writer owner

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Initalizes a new instance of the ArchiveEntryCollection class.
        /// </summary>
        /// <param name="owner">The ArchiveReader that owns this collection.</param>
        /// <param name="numEntries">The total number of entries in the archive.</param>
        public ArchiveEntryCollection(ArchiveReader owner, int numEntries)
        {
            ownerReader = owner;

            entries = new List<ArchiveEntry>(numEntries);
        }