Пример #1
0
		/// <summary>
		/// Create a new file entry.
		/// </summary>
		/// <param name="name">Name.</param>
		/// <param name="offsetName">Offset name.</param>
		/// <param name="fileOffset">File offset.</param>
		/// <param name="fileSize">File size.</param>
		/// <param name="parent">Parent.</param>
		public BodFileEntry (string name, int offsetName, int fileOffset, int fileSize, BodDirectoryEntry parent)
			: base (name, offsetName)
		{
			_type = BodEntryType.File;
			_data = new byte[] { };
			_fileOffset = fileOffset;
			_fileSize = fileSize;
			_parent = parent;
		}
Пример #2
0
		/// <summary>
		/// Creates a new directory entry counter.
		/// </summary>
		public BodDirectoryCounter (BodDirectoryEntry entry, int fileCount)
		{
			_entry = entry;
			_remaining = fileCount;
		}