mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
16 lines
421 B
Python
16 lines
421 B
Python
from abstract import AbstractPartition
|
|
|
|
|
|
class SinglePartition(AbstractPartition):
|
|
"""Represents a single virtual partition on an unpartitioned volume
|
|
"""
|
|
|
|
def get_start(self):
|
|
"""Gets the starting byte of this partition
|
|
|
|
Returns:
|
|
Bytes. The starting byte of this partition
|
|
"""
|
|
from ....common.bytes import Bytes
|
|
# On an unpartitioned volume there is no offset and no previous partition
|
|
return Bytes(0)
|