Documentation
¶
Index ¶
- func BoolToChar(v bool) C.char
- func BoolToInt(v bool) C.int
- func CFreeBuf(data []byte)
- func CFreeBufMulti(datas [][]byte)
- func CFreeUintptrMulti(ptrs []uintptr)
- func CFreeUnsafe(ptr unsafe.Pointer)
- func CFreeUnsafeMulti(ptrs []unsafe.Pointer)
- func CharToBool(c C.char) bool
- func ErrnoGet(err error) error
- func IntToBool(c C.int) bool
- func SetBytesSliceHeader(pData *[]byte, ptr uintptr, len, cap int)
- func SetBytesSliceHeaderCapAndLen(pData *[]byte, len, cap int)
- func SliceHeaderSetCapAndLen(sh *reflect.SliceHeader, len, cap int)
- type Errno
- type ExternalMultiData
- type MultiData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToChar ¶
func CFreeBufMulti ¶
func CFreeBufMulti(datas [][]byte)
func CFreeUintptrMulti ¶
func CFreeUintptrMulti(ptrs []uintptr)
func CFreeUnsafe ¶
func CFreeUnsafeMulti ¶
func SetBytesSliceHeader ¶
func SliceHeaderSetCapAndLen ¶
func SliceHeaderSetCapAndLen(sh *reflect.SliceHeader, len, cap int)
Types ¶
type ExternalMultiData ¶
type ExternalMultiData struct {
MultiData
// If more are expected to come
// -> if the corresponding C function is to be invoked again
HasMore bool
}
it is used to load data in a predefined (in go allocated) ptrs slice
func ExternalMultiDataCreate ¶
func ExternalMultiDataCreate(cap int) (self ExternalMultiData)
func (*ExternalMultiData) Free ¶
func (self *ExternalMultiData) Free()
Click to show internal directories.
Click to hide internal directories.