pdu

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PDU

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

func Alloc

func Alloc(headerCap int, dataLen int, dataCap int) *PDU

func (*PDU) Append

func (p *PDU) Append(b ...byte)

func (*PDU) Buf

func (p *PDU) Buf() []byte

func (*PDU) DropLeft

func (p *PDU) DropLeft(amount int) []byte

func (*PDU) DropRight

func (p *PDU) DropRight(amount int) []byte

func (*PDU) ExtendLeft

func (p *PDU) ExtendLeft(amount int) []byte

func (*PDU) ExtendRight

func (p *PDU) ExtendRight(amount int) []byte

func (*PDU) LeftCap

func (p *PDU) LeftCap() int

func (*PDU) Len

func (p *PDU) Len() int

func (*PDU) NormalizeLeft

func (p *PDU) NormalizeLeft(leftCap int)

func (*PDU) Realloc

func (p *PDU) Realloc(leftCap int, dataLen int, dataCap int) bool

func (*PDU) Reset

func (p *PDU) Reset()

func (*PDU) RightCap

func (p *PDU) RightCap() int

func (*PDU) SetState

func (p *PDU) SetState(expected int, new int)

func (PDU) String

func (p PDU) String() string

func (*PDU) Truncate

func (p *PDU) Truncate(length int)

Jump to

Keyboard shortcuts

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