Files
BinaryObjectScanner/BinaryObjectScanner.Models/MoPaQ/BlockEntry.cs

35 lines
1.0 KiB
C#
Raw Normal View History

2022-12-14 15:43:13 -08:00
using System.Runtime.InteropServices;
2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.MoPaQ
2022-12-14 15:43:13 -08:00
{
/// <summary>
/// Block table contains informations about file sizes and way of their storage within
/// the archive. It also contains the position of file content in the archive. Size
/// of block table entry is (like hash table entry). The block table is also encrypted.
/// </summary>
/// <see href="http://zezula.net/en/mpq/mpqformat.html"/>
[StructLayout(LayoutKind.Sequential)]
2022-12-27 17:12:55 -08:00
public sealed class BlockEntry
2022-12-14 15:43:13 -08:00
{
/// <summary>
/// Offset of the beginning of the file data, relative to the beginning of the archive.
/// </summary>
public uint FilePosition;
/// <summary>
/// Compressed file size
/// </summary>
public uint CompressedSize;
/// <summary>
/// Size of uncompressed file
/// </summary>
public uint UncompressedSize;
/// <summary>
/// Flags for the file.
/// </summary>
2022-12-14 16:29:07 -08:00
public FileFlags Flags;
2022-12-14 15:43:13 -08:00
}
}