Uint16

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActualPort

func GetActualPort(listener string) uint16

func GetPort

func GetPort(listener string) simplebuffer.Serializer

Types

type Uint16

type Uint16 struct {
	Bytes [2]byte
}

func New

func New() *Uint16

func (*Uint16) Decode

func (p *Uint16) Decode(b []byte) (out []byte)

func (*Uint16) DecodeOne

func (p *Uint16) DecodeOne(b []byte) *Uint16

func (*Uint16) Encode

func (p *Uint16) Encode() []byte

func (*Uint16) Get

func (p *Uint16) Get() uint16

func (*Uint16) Put

func (p *Uint16) Put(i uint16) *Uint16

func (*Uint16) String

func (p *Uint16) String() string

Jump to

Keyboard shortcuts

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