conversion

package
v0.0.0-...-e24e4fd Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BytesToFloat32 func([]byte) []float32 = bytesToFloat32Safe
View Source
var Float32ToBytes func([]float32) []byte = float32ToBytesSafe

Functions

func BytesToEdgeList

func BytesToEdgeList(b []byte) []uint64

func BytesToSingleFloat32

func BytesToSingleFloat32(b []byte) float32

func BytesToUint64

func BytesToUint64(b []byte) uint64

func EdgeListToBytes

func EdgeListToBytes(edges []uint64) []byte

func NodeIdFromKey

func NodeIdFromKey(key []byte, suffix byte) (uint64, bool)

Checks if a given key and suffix is a valid a node key and returns the id.

func NodeKey

func NodeKey(id uint64, suffix byte) []byte

Converts a node id and a suffix to a byte slice key to be used in diskstore.

func SingleFloat32ToBytes

func SingleFloat32ToBytes(f float32) []byte

func Uint64ToBytes

func Uint64ToBytes(i uint64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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