convert

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBytePtr

func ToBytePtr(s string) *byte

ToBytePtr converts a Go string to a null-terminated C-style string by just appending a null byte, if s doesn't already contain one.

func ToBytePtrNullable

func ToBytePtrNullable(s string) *byte

ToBytePtrNullable does the same thing as ToBytePtr, except that an empty string returns nil.

func ToString

func ToString(p *byte) string

ToString converts a null-terminated C-style string into a Go string.

func ToStringSlice

func ToStringSlice(pointers **byte) []string

ToStringSlice converts a null-terminated list of C-style strings to a slice of Go strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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