Documentation
¶
Overview ¶
Package common 公共函数.
Index ¶
- func BoolPtr(b bool) uintptr
- func ByteSliceDataPtr(b *[]byte) uintptr
- func Float32Ptr(f float32) uintptr
- func StrPtr(s string) uintptr
- func StringToUint16Ptr(s string) *uint16
- func Uint16SliceDataPtr(p *[]uint16) uintptr
- func Uint16SliceToStringSlice(s []uint16) []string
- func UintPtrToFloat32(ptr uintptr) float32
- func UintPtrToString(ptr uintptr) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToUint16Ptr ¶
StringToUint16Ptr 返回指向 UTF-8 字符串 s 的 UTF-16 编码的指针,与 syscall.UTF16PtrFromString 不同的是末尾没有添加终止 NUL。
func Uint16SliceToStringSlice ¶
Uint16SliceToStringSlice 按null字符分割, 把 []uint16 转换到 []string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.