bootstrap-vz/bootstrapvz/base/fs/partitions/single.py

17 lines
429 B
Python
Raw Normal View History

from abstract import AbstractPartition
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
"""
from bootstrapvz.common.bytes import Bytes
2014-03-23 16:04:03 +01:00
# On an unpartitioned volume there is no offset and no previous partition
return Bytes(0)