blob: 849bb3bbb3ae7ca809c6504192537f8ddd90e8b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixToolset
{
using System;
/// <summary>
/// Properties of a file in a cabinet.
/// </summary>
internal sealed class CabinetFileInfo
{
private string fileId;
private ushort date;
private ushort time;
private int size;
/// <summary>
/// Constructs CabinetFileInfo
/// </summary>
/// <param name="fileId">File Id</param>
/// <param name="date">Last modified date (MS-DOS time)</param>
/// <param name="time">Last modified time (MS-DOS time)</param>
public CabinetFileInfo(string fileId, ushort date, ushort time, int size)
{
this.fileId = fileId;
this.date = date;
this.time = time;
this.size = size;
}
/// <summary>
/// Gets the file Id of the file.
/// </summary>
/// <value>file Id</value>
public string FileId
{
get { return this.fileId; }
}
/// <summary>
/// Gets modified date (DOS format).
/// </summary>
public ushort Date
{
get { return this.date; }
}
/// <summary>
/// Gets modified time (DOS format).
/// </summary>
public ushort Time
{
get { return this.time; }
}
/// <summary>
/// Gets the size of the file in bytes.
/// </summary>
public int Size
{
get { return this.size; }
}
}
}
|