embedded

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedTypes = map[int]string{}/* 130 elements not displayed */

Embedded type to proto struct name

View Source
var UBitVarMap = []int{0, 4, 8, 28}

Functions

func GetEmbdeddedType

func GetEmbdeddedType(kind int) (string, proto.Message, error)

Types

type EmbeddedDecoder

type EmbeddedDecoder struct {
	Buffer  []byte
	Length  int
	BytePos int
	TruePos int
}

func (*EmbeddedDecoder) Decode

func (p *EmbeddedDecoder) Decode(data []byte) (*EmbeddedPacket, error)

Decode the packet header and extract the raw data

type EmbeddedHandler

type EmbeddedHandler func(proto.Message, *mappings.LookupObjects) error

type EmbeddedPacket

type EmbeddedPacket struct {
	Kind    int
	Size    int
	Command string
	RawData []byte
	Data    proto.Message
}

func (*EmbeddedPacket) Parse

func (p *EmbeddedPacket) Parse(gatherers map[string]Gatherer, lk *mappings.LookupObjects) error

Parse the packet into a proto struct

type Gatherer

type Gatherer interface {
	GetName() string
	GetHandlers() map[int]EmbeddedHandler
	GetResults() interface{}
}

Interface required for any gatherers added to the replay parser

type GathererFactory

type GathererFactory func() Gatherer

Jump to

Keyboard shortcuts

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