1
0
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:
Nils 2022-01-23 14:28:15 +01:00
parent 081869102f
commit 13a8f62582
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

30
mbr/consts.go Normal file
View 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
)