util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBusIDFromBDF

func ParseBusIDFromBDF(bdf string) (string, error)

ParseBusIDFromBDF parses bdf and returns PCI bus DeviceID.

Types

type BtreeMap added in v0.1.35

type BtreeMap[K any, V any] struct {
	// contains filtered or unexported fields
}

func NewBtreeMapWithLessFunc added in v0.1.35

func NewBtreeMapWithLessFunc[K any, V any](degree int, less btree.LessFunc[BtreeMapItem[K, V]]) *BtreeMap[K, V]

func (*BtreeMap[K, V]) Get added in v0.1.35

func (m *BtreeMap[K, V]) Get(key K) V

func (*BtreeMap[K, V]) Has added in v0.1.35

func (m *BtreeMap[K, V]) Has(key K) bool

func (*BtreeMap[K, V]) Insert added in v0.1.35

func (m *BtreeMap[K, V]) Insert(key K, value V)

func (*BtreeMap[K, V]) Keys added in v0.1.35

func (m *BtreeMap[K, V]) Keys() []K

type BtreeMapItem added in v0.1.35

type BtreeMapItem[K any, V any] struct {
	Key   K
	Value V
}

type BtreeSet added in v0.1.35

type BtreeSet[T any] struct {
	// contains filtered or unexported fields
}

func NewBtreeSetWithLessFunc added in v0.1.35

func NewBtreeSetWithLessFunc[T any](degree int, less btree.LessFunc[T]) *BtreeSet[T]

func (*BtreeSet[T]) Has added in v0.1.35

func (s *BtreeSet[T]) Has(item T) bool

func (*BtreeSet[T]) Insert added in v0.1.35

func (s *BtreeSet[T]) Insert(item T)

func (*BtreeSet[T]) Items added in v0.1.35

func (s *BtreeSet[T]) Items() []T

func (*BtreeSet[T]) Len added in v0.1.35

func (s *BtreeSet[T]) Len() int

Jump to

Keyboard shortcuts

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