utils

package
v0.3.3-beta-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DigestFunc = blake2b.Sum256

DigestFunc is an alias for blake2b checksum algorithm

View Source
var ErrMsgUnexpectedEnd = errors.New("unexpected end of message")

ErrMsgUnexpectedEnd is returned when message is too short

Functions

func GetBool

func GetBool(buf *[]byte) (b bool, err error)

func GetByte

func GetByte(buf *[]byte) (b byte, err error)

func GetBytes

func GetBytes(buf *[]byte, ln int) (b []byte, err error)

func GetInt16

func GetInt16(buf *[]byte) (i int16, err error)

func GetInt32

func GetInt32(buf *[]byte) (i int32, err error)

func GetInt64

func GetInt64(buf *[]byte) (i int64, err error)

func GetUint16

func GetUint16(buf *[]byte) (i uint16, err error)

func GetUint32

func GetUint32(buf *[]byte) (i uint32, err error)

func GetUint64

func GetUint64(buf *[]byte) (i uint64, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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