Sizes

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.types
  • Platforms: .NET, .NET Standard 2.0, Island


Required Methods


Alignof

 

method Alignof(T: Type): int64

 

int64 Alignof(Type T)

 

func Alignof(_ T: Type) -> int64

 

func Alignof(T Type) int64

 

Function Alignof(T As Type) As int64

Parameters:

  • T:

Offsetsof

 

// .NET, .NET Standard 2.0
method Offsetsof(fields: Slice<Memory<Var>>): Slice<int64>
// Island
method Offsetsof(fields: Slice<Memory<Var>>): Slice<int64>

 

// .NET, .NET Standard 2.0
Slice<int64> Offsetsof(Slice<Memory<Var>> fields)
// Island
Slice<int64> Offsetsof(Slice<Memory<Var>> fields)

 

// .NET, .NET Standard 2.0
func Offsetsof(_ fields: Slice<Memory<Var>>) -> Slice<int64>
// Island
func Offsetsof(_ fields: Slice<Memory<Var>>) -> Slice<int64>

 

// .NET, .NET Standard 2.0
func Offsetsof(fields Slice<Memory<Var>>) Slice<int64>
// Island
func Offsetsof(fields Slice<Memory<Var>>) Slice<int64>

 

// .NET, .NET Standard 2.0
Function Offsetsof(fields As Slice<Memory<Var>>) As Slice<int64>
// Island
Function Offsetsof(fields As Slice<Memory<Var>>) As Slice<int64>

Parameters:

  • fields:

Sizeof

 

method Sizeof(T: Type): int64

 

int64 Sizeof(Type T)

 

func Sizeof(_ T: Type) -> int64

 

func Sizeof(T Type) int64

 

Function Sizeof(T As Type) As int64

Parameters:

  • T:

Implemented in