lexinum

package
v0.0.0-...-782863c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package lexinum supports encoding of uint64s in a lexicographically sortable manner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(d []byte) (uint64, error)

Decode returns the deserialised uint64 value, along with the slice index of the read data.

func Encode

func Encode(v uint64) []byte

Encode serialises the given uint64 so that the encoded form is lexicographically comparable in numeric order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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