cgo

package
v0.0.0-...-f4c0d56 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cast

func Cast[T any](ptr any) T

func CastPtr

func CastPtr[T any](ptr Ptr) *T

func GStr

func GStr(str CString) string

Types

type CByte

type CByte C.char

type CChar

type CChar = CByte

type CDouble

type CDouble C.double

type CFloat

type CFloat C.float

type CInt

type CInt C.int

type CInt16

type CInt16 C.short

type CInt64

type CInt64 C.longlong

type CInt8

type CInt8 C.schar

type CLong

type CLong C.long

type CSize_t

type CSize_t = C.size_t

type CString

type CString *C.char

func CStr

func CStr(str string) CString

type CUInt

type CUInt C.uint

type CUInt16

type CUInt16 C.ushort

type CUInt64

type CUInt64 C.ulonglong

type CUInt8

type CUInt8 C.uchar

type CULong

type CULong C.ulong

type Ptr

type Ptr = unsafe.Pointer

func CMalloc

func CMalloc(size CSize_t) Ptr

func Nullptr

func Nullptr() Ptr

type Voidptr

type Voidptr = uintptr

func CastVoidPtr

func CastVoidPtr[T any](a *T) Voidptr

Jump to

Keyboard shortcuts

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