pg

package
v1.2.0-rc.1.0...-65ced95 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStreamType

func AddStreamType(v *vnet.Vnet, name string, t StreamType)

func GetMain

func GetMain(v *vnet.Vnet) *main

func Init

func Init(v *vnet.Vnet)

Types

type Stream

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

func (*Stream) AddHeader

func (s *Stream) AddHeader(v vnet.PacketHeader)

func (*Stream) AddStreamer

func (s *Stream) AddStreamer(r Streamer)

func (*Stream) DataOffset

func (s *Stream) DataOffset() uint

func (*Stream) Finalize

func (s *Stream) Finalize(r []vnet.Ref, data_offset uint) (changed bool)

func (*Stream) GetSize

func (s *Stream) GetSize() uint

func (*Stream) IsVariableSize

func (s *Stream) IsVariableSize() bool

func (*Stream) MaxSize

func (s *Stream) MaxSize() uint

type StreamType

type StreamType interface {
	Name() string
	ParseStream(in *parse.Input) (Streamer, error)
}

func GetStreamType

func GetStreamType(v *vnet.Vnet, name string) (t StreamType)

type Streamer

type Streamer interface {
	Finalize(refs []vnet.Ref, data_offset uint) bool
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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