pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PKG_SIZE_BYTES = 4
	PKG_TYPE_BYTES = 4
)

Variables

This section is empty.

Functions

func Decode

func Decode(buffer []byte) (length int, pkgType uint32, body []byte)

*

  • Package protocol decode.
  • See encode for package format.

func Encode

func Encode(pkgType uint32, body []byte) *[]byte

*

  • Package protocol encode. *
  • +------+------+------------------+
  • | size | type | body |
  • +------+------+------------------+ *

func GetByteOrder

func GetByteOrder() bool

func SetByteOrder

func SetByteOrder(littleEndian bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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