File: single.py

package info (click to toggle)
bootstrap-vz 0.9.11%2B20180121git-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,244 kB
  • sloc: python: 8,800; sh: 813; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

        :return: The starting byte of this partition
        :rtype: Sectors
        """
        from bootstrapvz.common.sectors import Sectors
        return Sectors(0, self.size.sector_size)