utils

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryDecoder

func BinaryDecoder(payload *bytes.Buffer, dests ...interface{}) error

func BinaryRead added in v2.1.0

func BinaryRead(payload BytesBuffer, order binary.ByteOrder, data any) error

Types

type BytesBuffer added in v2.1.0

type BytesBuffer interface {
	io.Reader
	Next(int) []byte
}

type IPAddress added in v2.1.1

type IPAddress []byte // purely for the formatting purpose

func (IPAddress) MarshalJSON added in v2.1.1

func (s IPAddress) MarshalJSON() ([]byte, error)

type MacAddress added in v2.1.1

type MacAddress []byte // purely for the formatting purpose

func (*MacAddress) MarshalJSON added in v2.1.1

func (s *MacAddress) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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