2013-09-18 00:46:58 +02:00
|
|
|
from abstract import AbstractPartition
|
2013-09-15 13:19:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
class SinglePartition(AbstractPartition):
|
2014-03-23 16:04:03 +01:00
|
|
|
"""Represents a single virtual partition on an unpartitioned volume
|
|
|
|
"""
|
2014-01-19 01:02:29 +01:00
|
|
|
|
|
|
|
def get_start(self):
|
2014-03-23 16:04:03 +01:00
|
|
|
"""Gets the starting byte of this partition
|
|
|
|
|
2014-05-04 19:31:53 +02:00
|
|
|
:return: The starting byte of this partition
|
2015-01-03 12:44:57 +01:00
|
|
|
:rtype: Sectors
|
2014-03-23 16:04:03 +01:00
|
|
|
"""
|
2015-01-03 12:44:57 +01:00
|
|
|
from bootstrapvz.common.sectors import Sectors
|
|
|
|
return Sectors(0, self.size.sector_size)
|