ffi

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSliceToString

func ByteSliceToString(b []byte) string

ByteSliceToString converts a null-padded byte slice to a Go string.

func CStringToGo

func CStringToGo(ptr uintptr) string

CStringToGo converts a null-terminated C string pointer to a Go string.

func FAM

func FAM[P, T any](baseStruct *P, count int) []T

FAM accesses a Flexible Array Member that immediately follows struct P in memory.

func OpenLibrary

func OpenLibrary(name string) (uintptr, error)

OpenLibrary loads the shared library at the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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