typ

package
v0.0.0-...-ecbd380 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	Element Type
	Count   int
	// contains filtered or unexported fields
}

func (*Array) GoString

func (arr *Array) GoString() string

func (*Array) Kind

func (arr *Array) Kind() Kind

func (*Array) SizeOf

func (arr *Array) SizeOf() int

func (*Array) String

func (arr *Array) String() string

func (*Array) ZeroValue

func (arr *Array) ZeroValue() interface{}

type Function

type Function struct {
	Results  []Type
	Params   []Type
	IsVarArg bool
	// contains filtered or unexported fields
}

func (*Function) GoString

func (fn *Function) GoString() string

func (*Function) Kind

func (fn *Function) Kind() Kind

func (*Function) SizeOf

func (fn *Function) SizeOf() int

func (*Function) String

func (fn *Function) String() string

func (*Function) ZeroValue

func (fn *Function) ZeroValue() interface{}

type Integer

type Integer uint8

func (Integer) Bits

func (i Integer) Bits() int

func (Integer) GoString

func (i Integer) GoString() string

func (Integer) Kind

func (i Integer) Kind() Kind

func (Integer) SizeOf

func (i Integer) SizeOf() int

func (Integer) String

func (i Integer) String() string

func (Integer) ZeroValue

func (i Integer) ZeroValue() interface{}

type Kind

type Kind uint8
const (
	VoidKind Kind = iota
	FloatKind
	DoubleKind
	IntegerKind
	FunctionKind
	StructKind
	ArrayKind
	PointerKind
)

type Pointer

type Pointer struct {
	Element   Type
	AddrSpace int
	// contains filtered or unexported fields
}

func (*Pointer) GoString

func (ptr *Pointer) GoString() string

func (*Pointer) Kind

func (ptr *Pointer) Kind() Kind

func (*Pointer) SizeOf

func (ptr *Pointer) SizeOf() int

func (*Pointer) String

func (ptr *Pointer) String() string

func (*Pointer) ZeroValue

func (ptr *Pointer) ZeroValue() interface{}

type Struct

type Struct struct {
	Name     string
	Elements []Type
	Packed   bool
	// contains filtered or unexported fields
}

func (*Struct) GoString

func (st *Struct) GoString() string

func (*Struct) Kind

func (st *Struct) Kind() Kind

func (*Struct) OffsetOf

func (st *Struct) OffsetOf(element int) int

func (*Struct) Reference

func (st *Struct) Reference() string

func (*Struct) SizeOf

func (st *Struct) SizeOf() int

func (*Struct) String

func (st *Struct) String() string

func (*Struct) ZeroValue

func (st *Struct) ZeroValue() interface{}

type Type

type Type interface {
	Kind() Kind
	String() string
	ZeroValue() interface{}
	SizeOf() int
	GoString() string
	// contains filtered or unexported methods
}

type Types

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

func (*Types) ArrayType

func (ctx *Types) ArrayType(elem Type, count int) Type

func (*Types) CompleteStructType

func (ctx *Types) CompleteStructType(t Type, elems []Type)

func (*Types) FunctionType

func (ctx *Types) FunctionType(results []Type, params []Type, isVarArg bool) Type

func (*Types) IntegerType

func (ctx *Types) IntegerType(bits int) Type

func (*Types) IntegerWordType

func (ctx *Types) IntegerWordType() Type

func (*Types) Parse

func (types *Types) Parse(str string) (Type, error)

func (*Types) PartialStructType

func (ctx *Types) PartialStructType(name string, packed bool) Type

func (*Types) PointerType

func (ctx *Types) PointerType(elem Type, addrspace int) Type

func (*Types) StringType

func (ctx *Types) StringType() Type

func (*Types) StructType

func (ctx *Types) StructType(name string, elems []Type, packed bool) Type

func (*Types) VoidPointer

func (ctx *Types) VoidPointer() Type

func (*Types) VoidType

func (ctx *Types) VoidType() Type

type Void

type Void struct{}

func (Void) GoString

func (v Void) GoString() string

func (Void) Kind

func (v Void) Kind() Kind

func (Void) SizeOf

func (v Void) SizeOf() int

func (Void) String

func (v Void) String() string

func (Void) ZeroValue

func (v Void) ZeroValue() interface{}

Jump to

Keyboard shortcuts

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