types

package
v0.0.0-...-acb1236 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerField

type ContainerField struct {
	Key   string
	Value ValRep
}

type UintSize

type UintSize int
const (
	Uint8   UintSize = 8
	Uint16  UintSize = 16
	Uint32  UintSize = 32
	Uint64  UintSize = 64
	Uint128 UintSize = 128
	Uint256 UintSize = 256
)

type ValRep

type ValRep interface {
	TypeName() string
	FixedSize() int
	PackagePath() string
	IsVariableSized() bool
	SatisfiesInterface(*types.Interface) bool
}

type ValueBool

type ValueBool struct {
	Name    string
	Package string
}

func (*ValueBool) FixedSize

func (vb *ValueBool) FixedSize() int

func (*ValueBool) IsVariableSized

func (vb *ValueBool) IsVariableSized() bool

func (*ValueBool) PackagePath

func (vb *ValueBool) PackagePath() string

func (*ValueBool) SatisfiesInterface

func (vb *ValueBool) SatisfiesInterface(*types.Interface) bool

func (*ValueBool) TypeName

func (vb *ValueBool) TypeName() string

type ValueByte

type ValueByte struct {
	Name    string
	Package string
}

func (*ValueByte) FixedSize

func (vb *ValueByte) FixedSize() int

func (*ValueByte) IsVariableSized

func (vb *ValueByte) IsVariableSized() bool

func (*ValueByte) PackagePath

func (vb *ValueByte) PackagePath() string

func (*ValueByte) SatisfiesInterface

func (vb *ValueByte) SatisfiesInterface(*types.Interface) bool

func (*ValueByte) TypeName

func (vb *ValueByte) TypeName() string

type ValueContainer

type ValueContainer struct {
	Name          string
	Package       string
	Contents      []ContainerField
	HasSSZMethods bool

	Interfaces map[*types.Interface]bool
	// contains filtered or unexported fields
}

func (*ValueContainer) Append

func (vc *ValueContainer) Append(name string, value ValRep)

func (*ValueContainer) Fields

func (vc *ValueContainer) Fields() []ContainerField

func (*ValueContainer) FixedSize

func (vc *ValueContainer) FixedSize() int

func (*ValueContainer) GetField

func (vc *ValueContainer) GetField(name string) (ValRep, error)

func (*ValueContainer) IsVariableSized

func (vc *ValueContainer) IsVariableSized() bool

func (*ValueContainer) PackagePath

func (vc *ValueContainer) PackagePath() string

func (*ValueContainer) SatisfiesInterface

func (vc *ValueContainer) SatisfiesInterface(ti *types.Interface) bool

func (*ValueContainer) TypeName

func (vc *ValueContainer) TypeName() string

type ValueList

type ValueList struct {
	ElementValue ValRep
	MaxSize      int
}

func (*ValueList) FixedSize

func (vl *ValueList) FixedSize() int

func (*ValueList) IsVariableSized

func (vl *ValueList) IsVariableSized() bool

func (*ValueList) PackagePath

func (vl *ValueList) PackagePath() string

func (*ValueList) SatisfiesInterface

func (vl *ValueList) SatisfiesInterface(*types.Interface) bool

func (*ValueList) TypeName

func (vl *ValueList) TypeName() string

type ValueOverlay

type ValueOverlay struct {
	Name       string
	Package    string
	Underlying ValRep
	Interfaces map[*types.Interface]bool
}

func (*ValueOverlay) FixedSize

func (vo *ValueOverlay) FixedSize() int

func (*ValueOverlay) IsBitfield

func (vo *ValueOverlay) IsBitfield() bool

func (*ValueOverlay) IsVariableSized

func (vo *ValueOverlay) IsVariableSized() bool

func (*ValueOverlay) PackagePath

func (vo *ValueOverlay) PackagePath() string

func (*ValueOverlay) SatisfiesInterface

func (vo *ValueOverlay) SatisfiesInterface(ti *types.Interface) bool

func (*ValueOverlay) TypeName

func (vo *ValueOverlay) TypeName() string

type ValuePointer

type ValuePointer struct {
	Referent   ValRep
	Interfaces map[*types.Interface]bool
}

func (*ValuePointer) FixedSize

func (vp *ValuePointer) FixedSize() int

func (*ValuePointer) IsVariableSized

func (vp *ValuePointer) IsVariableSized() bool

func (*ValuePointer) PackagePath

func (vp *ValuePointer) PackagePath() string

func (*ValuePointer) SatisfiesInterface

func (vp *ValuePointer) SatisfiesInterface(ti *types.Interface) bool

func (*ValuePointer) TypeName

func (vp *ValuePointer) TypeName() string

type ValueUint

type ValueUint struct {
	Name    string
	Size    UintSize
	Package string
}

func (*ValueUint) FixedSize

func (vu *ValueUint) FixedSize() int

func (*ValueUint) IsVariableSized

func (vu *ValueUint) IsVariableSized() bool

func (*ValueUint) PackagePath

func (vu *ValueUint) PackagePath() string

func (*ValueUint) SatisfiesInterface

func (vu *ValueUint) SatisfiesInterface(*types.Interface) bool

func (*ValueUint) TypeName

func (vu *ValueUint) TypeName() string

type ValueUnion

type ValueUnion struct {
	Name string
}

func (*ValueUnion) FixedSize

func (vu *ValueUnion) FixedSize() int

func (*ValueUnion) IsVariableSized

func (vu *ValueUnion) IsVariableSized() bool

func (*ValueUnion) PackagePath

func (vu *ValueUnion) PackagePath() string

func (*ValueUnion) SatisfiesInterface

func (vu *ValueUnion) SatisfiesInterface(*types.Interface) bool

func (*ValueUnion) TypeName

func (vu *ValueUnion) TypeName() string

type ValueVector

type ValueVector struct {
	ElementValue ValRep
	Size         int
	IsArray      bool
}

func (*ValueVector) FixedSize

func (vv *ValueVector) FixedSize() int

func (*ValueVector) IsVariableSized

func (vv *ValueVector) IsVariableSized() bool

func (*ValueVector) PackagePath

func (vv *ValueVector) PackagePath() string

func (*ValueVector) SatisfiesInterface

func (vv *ValueVector) SatisfiesInterface(*types.Interface) bool

func (*ValueVector) TypeName

func (vv *ValueVector) TypeName() string

Jump to

Keyboard shortcuts

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