pbf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachField

func ForEachField(bytes []byte, iter func(f Field) error) error

ForEachField iterates through each field in protobuf bytes

Types

type Field

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

Field represents a protobuf field

func (*Field) Data

func (f *Field) Data() []byte

Data returns the field data

func (*Field) Float64

func (f *Field) Float64() float64

Float64 returns the float64 field value

func (*Field) ForEachPackedInt64

func (f *Field) ForEachPackedInt64(iter func(x int64) error) error

ForEachPackedInt64 iterates through each packed uint64

func (*Field) ForEachPackedUint64

func (f *Field) ForEachPackedUint64(iter func(x uint64) error) error

ForEachPackedUint64 iterates through each packed uint64

func (*Field) Int64

func (f *Field) Int64() int64

Int64 returns an int64 field value

func (*Field) Num

func (f *Field) Num() uint64

Num returns the field number

func (*Field) Uint64

func (f *Field) Uint64() uint64

Uint64 returns a uint64 field value

Jump to

Keyboard shortcuts

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