mirror of
https://github.com/byReqz/pt.git
synced 2024-11-24 07:44:55 +00:00
move constants to own file
This commit is contained in:
parent
081869102f
commit
13a8f62582
30
mbr/consts.go
Normal file
30
mbr/consts.go
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
package mbr
|
||||||
|
|
||||||
|
const (
|
||||||
|
MBRsize = 512
|
||||||
|
|
||||||
|
BootstrapCodeArea1Size = 218
|
||||||
|
BootstrapCodeArea1Offset = 0
|
||||||
|
BootstrapCodeArea2Size = 216
|
||||||
|
BootstrapCodeArea2Offset = 224
|
||||||
|
LegacyBootstrapCodeAreaOffset = 0
|
||||||
|
LegacyBootstrapCodeAreaSize = 446
|
||||||
|
|
||||||
|
DiskTimestampOffset = 218
|
||||||
|
DiskTimestampSize = 6
|
||||||
|
DiskTimeStampSecondsOffset = 221
|
||||||
|
DiskTimeStampSecondsSize = 1
|
||||||
|
DiskTimeStampMinutesOffset = 222
|
||||||
|
DiskTimeStampMinutesSize = 1
|
||||||
|
DiskTimeStampHoursOffset = 223
|
||||||
|
DiskTimeStampHoursSize = 1
|
||||||
|
|
||||||
|
PartitionEntrySize = 16
|
||||||
|
PartitionEntry1Offset = 446
|
||||||
|
PartitionEntry2Offset = 462
|
||||||
|
PartitionEntry3Offset = 478
|
||||||
|
PartitionEntry4Offset = 494
|
||||||
|
|
||||||
|
BootSignatureSize = 2
|
||||||
|
BootSignatureOffset = 510
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user