generate

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(d *descriptor.Database) ([]byte, error)

func Descriptors

func Descriptors(f *File, d *descriptor.Database)

func Imports

func Imports(f *File)

func MarshalFrame

func MarshalFrame(f *File, m *descriptor.Message)

func MessageType

func MessageType(f *File, m *descriptor.Message)

func Node

func Node(f *File, d *descriptor.Database, n *descriptor.Node)

func Package

func Package(f *File, d *descriptor.Database)

func SignalCustomType

func SignalCustomType(f *File, m *descriptor.Message, s *descriptor.Signal)

func UnmarshalFrame

func UnmarshalFrame(f *File, m *descriptor.Message)

Types

type CompileResult

type CompileResult struct {
	Database *descriptor.Database
	Warnings []error
}

func Compile

func Compile(sourceFile string, data []byte) (result *CompileResult, err error)

func CompileDefs

func CompileDefs(sourceFile string, defs []dbc.Def) (result *CompileResult, err error)

type File

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

func NewFile

func NewFile() *File

func (*File) Content

func (f *File) Content() ([]byte, error)

func (*File) Dump

func (f *File) Dump(v interface{})

func (*File) P

func (f *File) P(v ...interface{})

func (*File) Write

func (f *File) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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