cgo

package
v0.0.0-...-cb352a8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CString2GoString

func CString2GoString(str unsafe.Pointer) string

func CStringN2GoString

func CStringN2GoString(str unsafe.Pointer, len int) string

func CVoidPtr2GoByte

func CVoidPtr2GoByte(ptr unsafe.Pointer, len int) []byte

func Cptr2Bytes

func Cptr2Bytes(ptr unsafe.Pointer, l int) []byte

func GoByte2CharPtr

func GoByte2CharPtr(data []byte) *C.char

func GoByte2UCharPtr

func GoByte2UCharPtr(data []byte) *C.uchar

func GoByte2uintptr

func GoByte2uintptr(b []byte) uintptr

func GoString2CString

func GoString2CString(str string) *C.char

must call C.free

func GoString2uintpr

func GoString2uintpr(str string) uintptr

must call C.free

func StrLen

func StrLen(ptr unsafe.Pointer) int

func Uintptr2String

func Uintptr2String(ptr uintptr) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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