utils

package
v0.0.0-...-8253ce3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUint64

func BytesToUint64(b []byte) uint64

Converts bytes to an integer

func DecodeMsgPack

func DecodeMsgPack(buf []byte, out interface{}) error

Decode reverses the encode operation on a byte slice input

func EncodeMsgPack

func EncodeMsgPack(in interface{}) (*bytes.Buffer, error)

Encode writes an encoded object to a new bytes buffer

func Uint64ToBytes

func Uint64ToBytes(u uint64) []byte

Converts a uint to a byte slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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