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
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
Bytes. The starting byte of this partition
|
|
|
|
"""
|
2014-03-23 20:02:26 +01:00
|
|
|
from ....common.bytes import Bytes
|
2014-03-23 16:04:03 +01:00
|
|
|
# On an unpartitioned volume there is no offset and no previous partition
|
2014-01-19 12:39:07 +01:00
|
|
|
return Bytes(0)
|