zbidx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const IdxBitwise uint32 = 100 * 10000 //0x80000 //2^13=8192;2^19=52w4288

IdxBitwise 位掩码

Variables

This section is empty.

Functions

func GetPeerIdx

func GetPeerIdx(peer uint32) int

Types

type IdxAloc

type IdxAloc interface {
	AlocPeer() uint32
	FreePeer(peer uint32) bool
	GetAlocNum() int
	GetPeerIdx(peer uint32) int
	ValidPeer(peer uint32) bool
}

IdxAloc 索引分配器

func NewIdxAloc

func NewIdxAloc(logrow bool) IdxAloc

Jump to

Keyboard shortcuts

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