sizes

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fieldsof

func Fieldsof(t *types.Struct) []*types.Var

func Offsetsof

func Offsetsof(fields []*types.Var) []int64

func SetArch

func SetArch(a Arch)

func Sizeof

func Sizeof(T types.Type) int64

func WordSize

func WordSize() int64

Types

type Arch

type Arch interface {
	BasicSizes() [17]byte
	RuneSize() int
}

Jump to

Keyboard shortcuts

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