Versions in this module Expand all Collapse all v0 v0.0.2 Mar 29, 2020 v0.0.1 Mar 29, 2020 Changes in this version + const PartitionEntrySize + type Partition struct + Attributes uint64 + End uint64 + GUID string + Name string + Size uint64 + Start uint64 + Type Type + type Table struct + GUID string + LogicalSectorSize int + Partitions []*Partition + PhysicalSectorSize int + ProtectiveMBR bool + func Read(f util.File, logicalBlockSize, physicalBlockSize int) (*Table, error) + func (t *Table) Equal(t2 *Table) bool + func (t *Table) GetPartitionSize(partition int) (int64, error) + func (t *Table) GetPartitionStart(partition int) (int64, error) + func (t *Table) ReadPartitionContents(partition int, f util.File, writer io.Writer) (int64, error) + func (t *Table) Type() string + func (t *Table) Write(f util.File, size int64) error + func (t *Table) WritePartitionContents(partition int, f util.File, reader io.Reader) (uint64, error) + type Type string + const BiosBoot + const EFISystemPartition + const LinuxDMCrypt + const LinuxFilesystem + const LinuxLUKS + const LinuxLVM + const LinuxRaid + const LinuxRootArm32 + const LinuxRootArm64 + const LinuxRootX86 + const LinuxRootX86_64 + const LinuxSwap + const MbrBoot + const MicrosoftBasicData + const MicrosoftLDMData + const MicrosoftLDMMetadata + const MicrosoftReserved + const MicrosoftWindowsRecovery + const Unused + const VMWareFilesystem