# 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)

  A `namedtuple()` representing the fields of the GPT header.

  classmethod from_buffer(buf, offset=0)

    Construct a `GPTHeader` from the specified offset (which defaults to 0) in the buffer protocol object, buf.

  classmethod from_bytes(s)

    Construct a `GPTHeader` from the byte-string s.

class nobodd.gpt.GPTPartition(type_guid, part_guid, first_lba, last_lba, flags, part_label)

  A `namedtuple()` representing the fields of a GPT entry.

  classmethod from_buffer(buf, offset=0)

    Construct a `GPTPartition` from the specified offset (which defaults to 0) in the buffer protocol object, buf.

  classmethod from_bytes(s)

    Construct a `GPTPartition` from the byte-string s.