netparser

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostByteOrder

func HostByteOrder() binary.ByteOrder

Types

type INetParser

type INetParser interface {
	WriteBuffer(payload []byte) error
	ReadBuffer(payload []byte) (int, error)
	Close() error
}

func NewNetNative

func NewNetNative(w io.Writer, r io.Reader, nativeEndian binary.ByteOrder) INetParser

func NewNetNativeFd added in v1.0.1

func NewNetNativeFd(writeFd, readFd int, nativeEndian binary.ByteOrder) (INetParser, error)

func NewNetStrings

func NewNetStrings(w io.Writer, r io.Reader) INetParser

func NewNetStringsFd added in v1.0.1

func NewNetStringsFd(writeFd, readFd int) (INetParser, error)

type NetNative

type NetNative struct {
	// contains filtered or unexported fields
}

func (*NetNative) Close added in v1.0.1

func (c *NetNative) Close() error

func (NetNative) ReadBuffer

func (c NetNative) ReadBuffer(payload []byte) (int, error)

func (NetNative) WriteBuffer

func (c NetNative) WriteBuffer(payload []byte) error

type NetStrings

type NetStrings struct {
	// contains filtered or unexported fields
}

func (*NetStrings) Close added in v1.0.1

func (c *NetStrings) Close() error

func (NetStrings) ReadBuffer

func (c NetStrings) ReadBuffer(payload []byte) (int, error)

func (NetStrings) WriteBuffer

func (c NetStrings) WriteBuffer(payload []byte) error

Jump to

Keyboard shortcuts

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