stream

package
v0.0.0-...-8293206 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PacketBytes = 2
View Source
const PacketSize = 1<<(PacketBytes*8) - 1

Variables

This section is empty.

Functions

func FreePacket

func FreePacket(packet *Packet)

Types

type Packet

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

func NewPacket

func NewPacket() (p *Packet)

func (*Packet) BodySize

func (p *Packet) BodySize() int

func (*Packet) Data

func (p *Packet) Data() []byte

func (*Packet) FullSize

func (p *Packet) FullSize() int

func (*Packet) Next

func (p *Packet) Next(stream Stream) error

func (*Packet) WriteStream

func (p *Packet) WriteStream(stream Stream, b []byte) error

type PacketParser

type PacketParser struct {
}

type Stream

type Stream = io.ReadWriter

Jump to

Keyboard shortcuts

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