util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferedRead

func BufferedRead(buffer *bytes.Buffer, output []byte, reader ReadFunc) (int, error)

func ReadPacket

func ReadPacket(conn net.Conn) ([]byte, error)

func WritePacket

func WritePacket(conn net.Conn, payload []byte) error

Types

type ReadFunc

type ReadFunc func() ([]byte, error)

Jump to

Keyboard shortcuts

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