binstruct

package
v0.0.0-...-f8c32d9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(payload []byte, response interface{}) error

func Encode

func Encode(request interface{}) []byte

Encode struct to byte array

func FirstBitPosition

func FirstBitPosition(n uint64) uint8

func UintToHexString

func UintToHexString(v uint64, size int) (string, error)

Types

type Serializable

type Serializable interface {
	Serialize(w io.Writer)
	Deserialize(r io.Reader)
}

Jump to

Keyboard shortcuts

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