ir

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	Name string

	OriginalType string
}

type CompileOptions

type CompileOptions struct {
	UseUnsafe bool
}

type Enum

type Enum struct {
	Name string
	Size int

	Options []string
}

type Field

type Field struct {
	TypeInfo TypeInfo

	Name string

	Offset int
	Type   string
}

type FieldType

type FieldType int
const (
	FieldType_RESERVED FieldType = iota

	FieldType_UINT
	FieldType_INT
	FieldType_FLOAT
	FieldType_BOOL
	FieldType_STRING
	FieldType_BYTES
	FieldType_ENUM
	FieldType_STRUCT
)

type IR

type IR struct {
	FileName string

	Options CompileOptions

	Structs []*Struct
	Enums   []*Enum
	Aliases []*Alias
}

type Struct

type Struct struct {
	Name string
	Size int

	IsFixed bool

	TotalFixedFieldSize int
	FixedFields         []*Field

	DynamicHead             int
	DynamicFieldHeadOffsets []int
	DynamicFields           []*Field
}

type TypeInfo

type TypeInfo struct {
	Size      int
	IsDynamic bool

	FieldType FieldType
}

Jump to

Keyboard shortcuts

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