utils

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(b []byte) []byte

Clone returns a copy of b[:len(b)]. The result may have additional unused capacity. Clone(nil) returns nil.

func Equal

func Equal(a, b []byte) bool

Equal reports whether a and b are the same length and contain the same bytes. A nil argument is equivalent to an empty slice.

func GetChangelogPath added in v0.0.8

func GetChangelogPath(commitStorePath string) string

func GetCommitStorePath added in v0.0.23

func GetCommitStorePath(homePath string) string

func GetStateStorePath added in v0.0.23

func GetStateStorePath(homePath string, backend string) string

func IndexToVersion added in v0.0.8

func IndexToVersion(index uint64, initialVersion uint32) int64

IndexToVersion converts rlog index to version, reverse of versionToIndex

func NextVersion added in v0.0.8

func NextVersion(v int64, initialVersion uint32) int64

NextVersion get the next version

func VersionToIndex added in v0.0.8

func VersionToIndex(version int64, initialVersion uint32) uint64

VersionToIndex converts version to rlog index based on initial version

Types

This section is empty.

Jump to

Keyboard shortcuts

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