gptutil

package
v2.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package gptutil implements helper functions for GPT tables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GUIDToUUID

func GUIDToUUID(g []byte) []byte

GUIDToUUID converts a GPT GUID to a UUID.

func LastLBA

func LastLBA(r DiskSizer) (uint64, bool)

LastLBA returns the last logical block address of the device.

func UUIDToGUID

func UUIDToGUID(u []byte) []byte

UUIDToGUID converts a UUID to a GPT GUID.

Types

type DiskSizer

type DiskSizer interface {
	GetSectorSize() uint
	GetSize() uint64
}

DiskSizer is an interface for block devices that can provide their sector size and total size.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL