buffer

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadedField

type LoadedField struct {
	Name        string
	Value       any
	Enum        any
	ParentLayer LoadedSubLayer
}

func (*LoadedField) GetName

func (f *LoadedField) GetName() string

func (*LoadedField) GetValue

func (f *LoadedField) GetValue() any

type LoadedSubLayer added in v0.4.3

type LoadedSubLayer struct {
	LayerName string
	Name      string
}

type ProtoBuff

type ProtoBuff struct {
	bytes.Buffer
	// contains filtered or unexported fields
}

func (*ProtoBuff) Add

func (buffer *ProtoBuff) Add(fieldname string, value any, enum any)

Add will write into the buffer the value passed in args. It will also save the field for the Show function.

func (*ProtoBuff) AddBitsUint16 added in v0.4.5

func (buffer *ProtoBuff) AddBitsUint16(fieldname []string, values []uint16, sizes []int, enum []any)

func (*ProtoBuff) AddBitsUint32 added in v0.4.5

func (buffer *ProtoBuff) AddBitsUint32(fieldname []string, values []uint32, sizes []int, enum []any)

func (*ProtoBuff) AddBitsUint64 added in v0.4.5

func (buffer *ProtoBuff) AddBitsUint64(fieldname []string, values []uint64, sizes []int, enum []any)

func (*ProtoBuff) AddBitsUint8 added in v0.4.5

func (buffer *ProtoBuff) AddBitsUint8(fieldname []string, values []uint8, sizes []int, enum []any)

func (*ProtoBuff) AddLayer added in v0.4.4

func (buffer *ProtoBuff) AddLayer(fieldname string, layer any)

func (*ProtoBuff) Add_Le added in v0.4.2

func (buffer *ProtoBuff) Add_Le(fieldname string, value any, enum any)

func (*ProtoBuff) GetLoadedFields

func (buffer *ProtoBuff) GetLoadedFields() []LoadedField

func (*ProtoBuff) NextUint16 added in v0.4.5

func (buffer *ProtoBuff) NextUint16() uint16

func (*ProtoBuff) NextUint16Le added in v0.4.5

func (buffer *ProtoBuff) NextUint16Le() uint16

func (*ProtoBuff) NextUint32 added in v0.4.5

func (buffer *ProtoBuff) NextUint32() uint32

func (*ProtoBuff) NextUint32Le added in v0.4.5

func (buffer *ProtoBuff) NextUint32Le() uint32

func (*ProtoBuff) NextUint64 added in v0.4.5

func (buffer *ProtoBuff) NextUint64() uint64

func (*ProtoBuff) NextUint64Le added in v0.4.5

func (buffer *ProtoBuff) NextUint64Le() uint64

func (*ProtoBuff) NextUint8 added in v0.4.5

func (buffer *ProtoBuff) NextUint8() uint8

Jump to

Keyboard shortcuts

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