foo

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LLGoPackage = "link: -L/path/foo -lfoo"

Variables

This section is empty.

Functions

func F

func F(callback func() c.Int)

func Fill

func Fill(buf *c.Double, n c.Int)

func G

func G()

func H

func H(callbackPtr *func())

func Primitives

func Primitives(ch c.Char, uc uint8, sc int8, s int16, us uint16, i c.Int, ui c.Uint, l c.Long, ul c.Ulong, ll c.LongLong, ull c.UlongLong, flt c.Float) c.Double

Various primitive C types as function parameters and result.

func Sort

func Sort(a unsafe.Pointer, b unsafe.Pointer, elementSize c.Int, count c.Int, cmp func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 unsafe.Pointer) c.Int) c.Int

Function-pointer parameters and results.

func Sum

func Sum(values *c.Int, count c.Int) c.Int

Function parameters: an array formally written as T[N] or T[] is a pseudo-array that decays to a pointer T*.

func Transform

func Transform(matrix *[4]c.Int, p *[10]c.Int)

Multidimensional and pointer-to-array parameters: only the outermost array of a parameter decays. int matrix[3][4] decays its outer [3] to a pointer but keeps the inner [4] (=> *[4]int); int (*p)[10] keeps the pointee [10] (=> *[10]int).

Types

type Color

type Color c.Uint

An enumeration type used as a value type.

const (
	Red   Color = 0
	Green Color = 1
	Blue  Color = 2
)

func (Color) Pick

func (c Color) Pick() Color

An enum value passed and returned by value.

llgo:link Color.Pick C.pick

type LongDouble added in v0.9.5

type LongDouble = c.LongDouble

type Matrix

type Matrix struct {
	Rows c.Int
	Cols c.Int
	Data [16]c.Double
	Name [32]c.Char
}

A struct: fixed-size arrays declared as fields are true arrays (T[N]).

Jump to

Keyboard shortcuts

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