-
Notifications
You must be signed in to change notification settings - Fork 5
/
FormatWriteUpdateEventArgs.cs
100 lines (87 loc) · 2.95 KB
/
FormatWriteUpdateEventArgs.cs
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
using IMAPI2.Interop;
namespace IMAPI2
{
public class FormatWriteUpdateEventArgs
{
public FormatDataWriteAction _currentAction;
public int _startLba;
public int _sectorCount;
public int _lastReadLba;
public int _lastWrittenLba;
public int _totalSystemBuffer;
public int _usedSystemBuffer;
public int _freeSystemBuffer;
public int _elapsedTime;
public int _remainingTime;
public int _totalTime;
// The starting logical block address for the current write operation.
public int StartLba
{
get { return _startLba; }
}
// The number of sectors being written for the current write operation.
public int SectorCount
{
get { return _sectorCount; }
}
// The last logical block address of data read for the current write operation.
public int LastReadLba
{
get { return _lastReadLba; }
}
// The last logical block address of data written for the current write operation
public int LastWrittenLba
{
get { return _lastWrittenLba; }
}
// The total bytes available in the system's cache buffer
public int TotalSystemBuffer
{
get { return _totalSystemBuffer; }
}
// The used bytes in the system's cache buffer
public int UsedSystemBuffer
{
get { return _usedSystemBuffer; }
}
// The free bytes in the system's cache buffer
public int FreeSystemBuffer
{
get { return _freeSystemBuffer; }
}
// The total elapsed time for the current write operation
public int ElapsedTime
{
get { return _elapsedTime; }
}
// The estimated time remaining for the write operation.
public int RemainingTime
{
get { return _remainingTime; }
}
// The estimated total time for the write operation.
public int TotalTime
{
get { return _totalTime; }
}
// The current write action.
FormatDataWriteAction CurrentAction
{
get { return _currentAction; }
}
internal FormatWriteUpdateEventArgs(IDiscFormat2DataEventArgs e)
{
_elapsedTime = e.ElapsedTime;
_remainingTime = e.RemainingTime;
_totalTime = e.TotalTime;
_currentAction = (FormatDataWriteAction)e.CurrentAction;
_startLba = e.StartLba;
_sectorCount = e.SectorCount;
_lastReadLba = e.LastReadLba;
_lastWrittenLba = e.LastWrittenLba;
_totalSystemBuffer = e.TotalSystemBuffer;
_usedSystemBuffer = e.UsedSystemBuffer;
_freeSystemBuffer = e.FreeSystemBuffer;
}
}
}