Lines Matching defs:CPartition
82 struct CPartition struct
84 Byte Status;
85 CChs BeginChs;
86 Byte Type;
87 CChs EndChs;
88 UInt32 Lba;
89 UInt32 NumBlocks;
91 CPartition() { memset (this, 0, sizeof(*this)); } in CPartition() function
93 bool IsEmpty() const { return Type == 0; } in IsEmpty()
94 bool IsExtended() const { return Type == 5 || Type == 0xF; } in IsExtended()
95 UInt32 GetLimit() const { return Lba + NumBlocks; } in GetLimit()
97 UInt64 GetPos(unsigned sectorSizeLog) const { return (UInt64)Lba << sectorSizeLog; } in GetPos()
98 UInt64 GetSize(unsigned sectorSizeLog) const { return (UInt64)NumBlocks << sectorSizeLog; } in GetSize()
100 bool CheckLbaLimits() const { return (UInt32)0xFFFFFFFF - Lba >= NumBlocks; } in CheckLbaLimits()
101 bool Parse(const Byte *p) in Parse()
121 void Print() const in Print()