netparser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 7 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() ([]byte, error)
}

func NewNetNative

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

func NewNetStrings

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

type NetNative

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

func (NetNative) ReadBuffer

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

func (NetNative) WriteBuffer

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

type NetStrings

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

func (NetStrings) ReadBuffer

func (c NetStrings) ReadBuffer() (payload []byte, err 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