gcsizes

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: MIT, MIT 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