helper

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(b bool) int

func IntPtr added in v0.5.1

func IntPtr(v int) unsafe.Pointer

func PtrToSlice

func PtrToSlice(p unsafe.Pointer, cb func(unsafe.Pointer))

func PtrToString

func PtrToString(p unsafe.Pointer) string

func PtrToStrings

func PtrToStrings(p unsafe.Pointer) []string

func SliceToPtr

func SliceToPtr(v interface{}, cb func(int) unsafe.Pointer) unsafe.Pointer

func StringToPtr

func StringToPtr(s string) unsafe.Pointer

func StringsToPtr

func StringsToPtr(s []string) unsafe.Pointer

Types

type CPtrHolder added in v0.4.1

type CPtrHolder struct {
	Ptr     unsafe.Pointer
	Handler unsafe.Pointer
}

type Status

type Status struct {
	// contains filtered or unexported fields
}

func NewStatus

func NewStatus(raw unsafe.Pointer) *Status

func (*Status) Error

func (s *Status) Error() error

func (*Status) OK

func (s *Status) OK() bool

func (*Status) String

func (s *Status) String() string

Jump to

Keyboard shortcuts

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