utils

package
v0.0.0-...-21c8821 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(cond bool, msg string)

func Assertf

func Assertf(cond bool, msg string, args ...interface{})

func GenTestKey

func GenTestKey(i uint64) []byte

func GenTestValue

func GenTestValue(i uint64) []byte

func GetPage

func GetPage(pageSize int) []byte

func Murmur32

func Murmur32(k uint32) uint32

func PutPage

func PutPage(page []byte)

Types

type Stack

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

func NewStack

func NewStack[T any]() *Stack[T]

func NewStackWithCap

func NewStackWithCap[T any](capacity int) *Stack[T]

func (*Stack[T]) Empty

func (s *Stack[T]) Empty() bool

func (*Stack[T]) Len

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

func (*Stack[T]) Pop

func (s *Stack[T]) Pop() T

func (*Stack[T]) Push

func (s *Stack[T]) Push(v T)

func (*Stack[T]) Top

func (s *Stack[T]) Top() T

func (*Stack[T]) TopRef

func (s *Stack[T]) TopRef() *T

Jump to

Keyboard shortcuts

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