nobodd.gpt
Defines the data structures used by GUID Partition Tables. You should never
need these directly; use the nobodd.disk.DiskImage
class instead.
Data Structures
- class nobodd.gpt.GPTHeader(signature, revision, header_size, header_crc32, current_lba, backup_lba, first_usable_lba, last_usable_lba, disk_guid, part_table_lba, part_table_size, part_entry_size, part_table_crc32)[source]
A
namedtuple()
representing the fields of the GPT header.
- class nobodd.gpt.GPTPartition(type_guid, part_guid, first_lba, last_lba, flags, part_label)[source]
A
namedtuple()
representing the fields of a GPT entry.- classmethod from_buffer(buf, offset=0)[source]
Construct a
GPTPartition
from the specified offset (which defaults to 0) in the buffer protocol object, buf.
- classmethod from_bytes(s)[source]
Construct a
GPTPartition
from the byte-string s.