types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Void = T(0)
	I32  = T(maskInt | mask32)
	I64  = T(maskInt | mask64)
	F32  = T(maskFloat | mask32)
	F64  = T(maskFloat | mask64)

	Int   = Category(maskInt)
	Float = Category(maskFloat)

	Size32 = Size(mask32)
	Size64 = Size(mask64)
)

Variables

View Source
var ByString = map[string]T{
	"void": Void,
	"i32":  I32,
	"i64":  I64,
	"f32":  F32,
	"f64":  F64,
}

Functions

This section is empty.

Types

type Category

type Category uint8

type Function

type Function struct {
	Args   []T
	Result T
}

func (Function) Compare

func (f1 Function) Compare(f2 Function) int

func (Function) Equal

func (f1 Function) Equal(f2 Function) bool

func (Function) EqualVariadic

func (partial Function) EqualVariadic(complete Function) bool

func (Function) String

func (f Function) String() string

func (Function) StringWithNames

func (f Function) StringWithNames(localNames []string) (s string)

type Size

type Size uint8

type T

type T uint8

func BlockTypeByEncoding

func BlockTypeByEncoding(x int8) (t T)

func ByEncoding

func ByEncoding(x int8) T

func (T) Category

func (t T) Category() Category

func (T) Scalar

func (t T) Scalar() bool

func (T) Size

func (t T) Size() Size

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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