gcsizes

package
v0.0.0-...-0437ee0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package gcsizes provides a types.Sizes implementation that adheres to the rules used by the gc compiler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sizes

type Sizes struct {
	WordSize int64
	MaxAlign int64
}

func ForArch

func ForArch(arch string) *Sizes

ForArch returns a correct Sizes for the given architecture.

func (*Sizes) Alignof

func (s *Sizes) Alignof(T types.Type) int64

func (*Sizes) Offsetsof

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

func (*Sizes) Sizeof

func (s *Sizes) Sizeof(T types.Type) int64

Jump to

Keyboard shortcuts

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