runtime

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LLGoPackage = true
)

Variables

View Source
var (
	TyAny = &InterfaceType{}
)

Functions

func Alloc

func Alloc(size uintptr) unsafe.Pointer

Alloc allocates memory.

func CheckI2Int

func CheckI2Int(v Interface, t *Type) (uintptr, bool)

func I2Int

func I2Int(v Interface, t *Type) uintptr

func Malloc

func Malloc(size uintptr) unsafe.Pointer

Types

type Interface

type Interface = iface

func MakeAny

func MakeAny(typ *Type, data unsafe.Pointer) Interface

func MakeAnyInt

func MakeAnyInt(typ *Type, data uintptr) Interface

func MakeAnyString

func MakeAnyString(data string) Interface

func MakeInterface

func MakeInterface(inter *InterfaceType, typ *Type, data unsafe.Pointer) Interface

type InterfaceType

type InterfaceType = abi.InterfaceType

type Kind

type Kind = abi.Kind

type Slice

type Slice struct {
	// contains filtered or unexported fields
}

Slice is the runtime representation of a slice.

func NilSlice

func NilSlice() Slice

NilSlice returns a nil slice.

type String

type String struct {
	// contains filtered or unexported fields
}

String is the runtime representation of a string. It cannot be used safely or portably and its representation may change in a later release.

Unlike reflect.StringHeader, its Data field is sufficient to guarantee the data it references will not be garbage collected.

func EmptyString

func EmptyString() String

EmptyString returns an empty string.

type Type

type Type = abi.Type

func Basic

func Basic(kind Kind) *Type

Jump to

Keyboard shortcuts

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