typeinfo

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkToOctets

func ChunkToOctets(chunk *Chunk) ([]byte, error)

func GeneratePackageToChunk added in v0.0.2

func GeneratePackageToChunk(world *loader.Package, chunk *Chunk) error

func Refs

func Refs(types []InfoType) string

func Serialize

func Serialize(c *Chunk, writer io.Writer) error

func SerializeToOctets

func SerializeToOctets(c *Chunk) ([]byte, error)

Types

type AliasType

type AliasType struct {
	Type
	// contains filtered or unexported fields
}

func (*AliasType) HumanReadable

func (t *AliasType) HumanReadable() string

func (*AliasType) HumanReadableExpanded

func (t *AliasType) HumanReadableExpanded() string

func (*AliasType) String

func (t *AliasType) String() string

type AnyMatchingTypes added in v0.0.2

type AnyMatchingTypes struct {
	Type
}

func (*AnyMatchingTypes) HumanReadable added in v0.0.2

func (t *AnyMatchingTypes) HumanReadable() string

func (*AnyMatchingTypes) String added in v0.0.2

func (t *AnyMatchingTypes) String() string

type AnyType added in v0.0.2

type AnyType struct {
	Type
}

func (*AnyType) HumanReadable added in v0.0.2

func (t *AnyType) HumanReadable() string

func (*AnyType) String added in v0.0.2

func (t *AnyType) String() string

type ArrayType

type ArrayType struct {
	Type
	// contains filtered or unexported fields
}

func (*ArrayType) HumanReadable

func (t *ArrayType) HumanReadable() string

func (*ArrayType) String

func (t *ArrayType) String() string

type BlobType

type BlobType struct {
	Type
}

func (*BlobType) HumanReadable

func (t *BlobType) HumanReadable() string

func (*BlobType) String

func (t *BlobType) String() string

type BoolType

type BoolType struct {
	Type
}

func (*BoolType) HumanReadable

func (t *BoolType) HumanReadable() string

func (*BoolType) String

func (t *BoolType) String() string

type CharacterType

type CharacterType struct {
	Type
}

func (*CharacterType) HumanReadable

func (t *CharacterType) HumanReadable() string

func (*CharacterType) String

func (t *CharacterType) String() string

type Chunk

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

func (*Chunk) Consume

func (c *Chunk) Consume(p dtype.Type) (InfoType, error)

func (*Chunk) ConsumeAtom

func (c *Chunk) ConsumeAtom(a dtype.Atom) (InfoType, error)

func (*Chunk) ConsumeType

func (c *Chunk) ConsumeType(d dtype.Type) (InfoType, error)

func (*Chunk) ConsumeTypes

func (c *Chunk) ConsumeTypes(types []dtype.Type) ([]InfoType, error)

func (*Chunk) DebugOutput

func (c *Chunk) DebugOutput()

func (*Chunk) DebugOutputHumanReadable added in v0.0.6

func (c *Chunk) DebugOutputHumanReadable()

func (*Chunk) DebugOutputStrict added in v0.0.6

func (c *Chunk) DebugOutputStrict()

func (*Chunk) Lookup

func (c *Chunk) Lookup(d dtype.Type) (int, error)

type CustomType

type CustomType struct {
	Type
	// contains filtered or unexported fields
}

func (*CustomType) HumanReadable

func (t *CustomType) HumanReadable() string

func (*CustomType) String

func (t *CustomType) String() string

type FixedType

type FixedType struct {
	Type
}

func (*FixedType) HumanReadable

func (t *FixedType) HumanReadable() string

func (*FixedType) String

func (t *FixedType) String() string

type FunctionType

type FunctionType struct {
	Type
	// contains filtered or unexported fields
}

func (*FunctionType) HumanReadable

func (t *FunctionType) HumanReadable() string

func (*FunctionType) String

func (t *FunctionType) String() string

type InfoType

type InfoType interface {
	Index() int
	Ref() string
	HumanReadable() string
}

type IntType

type IntType struct {
	Type
}

func (*IntType) HumanReadable

func (t *IntType) HumanReadable() string

func (*IntType) String

func (t *IntType) String() string

type ListType

type ListType struct {
	Type
	// contains filtered or unexported fields
}

func (*ListType) HumanReadable

func (t *ListType) HumanReadable() string

func (*ListType) String

func (t *ListType) String() string

type LocalType

type LocalType struct {
	Type
	// contains filtered or unexported fields
}

func (*LocalType) HumanReadable

func (t *LocalType) HumanReadable() string

func (*LocalType) String

func (t *LocalType) String() string

type MemoryAlign added in v0.0.4

type MemoryAlign uint8

type MemoryInfo added in v0.0.4

type MemoryInfo struct {
	MemorySize  MemorySize
	MemoryAlign MemoryAlign
}

type MemoryOffset added in v0.0.4

type MemoryOffset uint16

type MemoryOffsetInfo added in v0.0.4

type MemoryOffsetInfo struct {
	MemoryOffset MemoryOffset
	MemoryInfo   MemoryInfo
}

type MemorySize added in v0.0.4

type MemorySize uint16

type RecordField

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

func (RecordField) HumanReadable

func (t RecordField) HumanReadable() string

func (RecordField) String

func (t RecordField) String() string

type RecordType

type RecordType struct {
	Type
	// contains filtered or unexported fields
}

func (*RecordType) HumanReadable

func (t *RecordType) HumanReadable() string

func (*RecordType) String

func (t *RecordType) String() string

type ResourceNameType

type ResourceNameType struct {
	Type
}

func (*ResourceNameType) HumanReadable

func (t *ResourceNameType) HumanReadable() string

func (*ResourceNameType) String

func (t *ResourceNameType) String() string

type StringType

type StringType struct {
	Type
}

func (*StringType) HumanReadable

func (t *StringType) HumanReadable() string

func (*StringType) String

func (t *StringType) String() string

type SwtiType

type SwtiType uint8
const (
	SwtiTypeCustom SwtiType = iota
	SwtiTypeCustomVariant
	SwtiTypeFunction
	SwtiTypeAlias
	SwtiTypeRecord
	SwtiTypeArray
	SwtiTypeList
	SwtiTypeString
	SwtiTypeInt
	SwtiTypeFixed
	SwtiTypeBoolean
	SwtiTypeBlob
	SwtiTypeResourceName
	SwtiTypeChar
	SwtiTypeTuple
	SwtiTypeRefId
	SwtiTypeAny
	SwtiTypeAnyMatchingTypes
	SwtiTypeUnmanaged
)

type TupleType added in v0.0.2

type TupleType struct {
	Type
	// contains filtered or unexported fields
}

func (*TupleType) HumanReadable added in v0.0.2

func (t *TupleType) HumanReadable() string

func (*TupleType) String added in v0.0.2

func (t *TupleType) String() string

type TupleTypeField added in v0.0.4

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

func (TupleTypeField) HumanReadable added in v0.0.4

func (t TupleTypeField) HumanReadable() string

func (TupleTypeField) String added in v0.0.4

func (t TupleTypeField) String() string

type Type

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

func (*Type) Index

func (t *Type) Index() int

func (*Type) Ref

func (t *Type) Ref() string

func (*Type) String

func (t *Type) String() string

type TypeLookup

type TypeLookup interface {
	Lookup(d dtype.Type) (int, error)
}

type TypeRefIdType added in v0.0.5

type TypeRefIdType struct {
	Type
	// contains filtered or unexported fields
}

func (*TypeRefIdType) HumanReadable added in v0.0.5

func (t *TypeRefIdType) HumanReadable() string

func (*TypeRefIdType) String added in v0.0.5

func (t *TypeRefIdType) String() string

type UnmanagedType added in v0.0.2

type UnmanagedType struct {
	Type
	// contains filtered or unexported fields
}

func (*UnmanagedType) HumanReadable added in v0.0.2

func (t *UnmanagedType) HumanReadable() string

func (*UnmanagedType) String added in v0.0.2

func (t *UnmanagedType) String() string

type Variant

type Variant struct {
	Type
	// contains filtered or unexported fields
}

func (*Variant) HumanReadable

func (t *Variant) HumanReadable() string

func (*Variant) String

func (t *Variant) String() string

type VariantField added in v0.0.4

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

func (VariantField) HumanReadable added in v0.0.4

func (t VariantField) HumanReadable() string

func (VariantField) String added in v0.0.4

func (t VariantField) String() string

Jump to

Keyboard shortcuts

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