Documentation ¶
Index ¶
- func ChunkToOctets(chunk *Chunk) ([]byte, error)
- func GeneratePackageToChunk(world *loader.Package, chunk *Chunk) error
- func Refs(types []InfoType) string
- func Serialize(c *Chunk, writer io.Writer) error
- func SerializeToOctets(c *Chunk) ([]byte, error)
- type AliasType
- type AnyMatchingTypes
- type AnyType
- type ArrayType
- type BlobType
- type BoolType
- type CharacterType
- type Chunk
- func (c *Chunk) Consume(p dtype.Type) (InfoType, error)
- func (c *Chunk) ConsumeAtom(a dtype.Atom) (InfoType, error)
- func (c *Chunk) ConsumeType(d dtype.Type) (InfoType, error)
- func (c *Chunk) ConsumeTypes(types []dtype.Type) ([]InfoType, error)
- func (c *Chunk) DebugOutput()
- func (c *Chunk) DebugOutputHumanReadable()
- func (c *Chunk) DebugOutputStrict()
- func (c *Chunk) Lookup(d dtype.Type) (int, error)
- type CustomType
- type FixedType
- type FunctionType
- type InfoType
- type IntType
- type ListType
- type LocalType
- type MemoryAlign
- type MemoryInfo
- type MemoryOffset
- type MemoryOffsetInfo
- type MemorySize
- type RecordField
- type RecordType
- type ResourceNameType
- type StringType
- type SwtiType
- type TupleType
- type TupleTypeField
- type Type
- type TypeLookup
- type TypeRefIdType
- type UnmanagedType
- type Variant
- type VariantField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChunkToOctets ¶
func GeneratePackageToChunk ¶ added in v0.0.2
func SerializeToOctets ¶
Types ¶
type AliasType ¶
type AliasType struct { Type // contains filtered or unexported fields }
func (*AliasType) HumanReadable ¶
func (*AliasType) HumanReadableExpanded ¶
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
type ArrayType ¶
type ArrayType struct { Type // contains filtered or unexported fields }
func (*ArrayType) HumanReadable ¶
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) 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()
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 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 ListType ¶
type ListType struct { Type // contains filtered or unexported fields }
func (*ListType) HumanReadable ¶
type LocalType ¶
type LocalType struct { Type // contains filtered or unexported fields }
func (*LocalType) HumanReadable ¶
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
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 TypeLookup ¶
func GenerateModule ¶
func GenerateModule(module *decorated.Module) ([]byte, TypeLookup, resourceid.ResourceNameLookup, 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 ¶
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
Click to show internal directories.
Click to hide internal directories.