util

package
v0.0.0-...-798f4f8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(b []byte) uint16

Types

type Buffer

type Buffer struct{ bytes.Buffer }

func NewBuffer

func NewBuffer(buf []byte) *Buffer

func (*Buffer) Len

func (b *Buffer) Len() uint16

func (*Buffer) MarshalBinary

func (b *Buffer) MarshalBinary() (data []byte, err error)

func (*Buffer) UnmarshalBinary

func (b *Buffer) UnmarshalBinary(data []byte) error

type Message

type Message interface {
	//encoding.BinaryMarshaler
	//encoding.BinaryUnmarshaler
	MarshalBinary() (data []byte, err error)
	UnmarshalBinary(data []byte) error

	Len() uint16
}

Jump to

Keyboard shortcuts

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