Versions in this module Expand all Collapse all v0 v0.14.2 Feb 24, 2022 v0.14.1 Feb 24, 2022 Changes in this version + const MaxIdx + const PtrSize + const SizeTSize + func Free(p CPtr) + func Memcpy(dst, src CPtr, n SizeT) + func SplitBuffer(b []byte) []string + func SplitSparseBuffer(b []byte) []string + type CPtr unsafe.Pointer + func CBytes(b []byte) CPtr + func Malloc(s SizeT) CPtr + type CPtrCSlice []CPtr + func NewCPtrCSlice(size int) CPtrCSlice + func (v *CPtrCSlice) Free() + func (v *CPtrCSlice) Ptr() CPtr + type CharPtr unsafe.Pointer + func CString(s string) CharPtr + type CharPtrPtr unsafe.Pointer + type CommandInput struct + func NewCommandInput(cmd [][]byte, inputBuffer []byte) *CommandInput + func (ci *CommandInput) Cmd() CharPtrPtr + func (ci *CommandInput) CmdLen() SizeT + func (ci *CommandInput) Free() + func (ci *CommandInput) InBuf() CharPtr + func (ci *CommandInput) InBufLen() SizeT + type CommandOutput struct + func NewCommandOutput() *CommandOutput + func (co *CommandOutput) Free() + func (co *CommandOutput) GoValues() (buf []byte, status string) + func (co *CommandOutput) OutBuf() CharPtrPtr + func (co *CommandOutput) OutBufLen() SizeTPtr + func (co *CommandOutput) Outs() CharPtrPtr + func (co *CommandOutput) OutsLen() SizeTPtr + func (co *CommandOutput) SetFreeFunc(f FreeFunc) *CommandOutput + type FreeFunc func(unsafe.Pointer) + type Iovec struct + func ByteSlicesToIovec(data [][]byte) (v Iovec) + func (v *Iovec) Free() + func (v *Iovec) Len() int + func (v *Iovec) Pointer() unsafe.Pointer + func (v *Iovec) Sync() + type PtrGuard struct + func NewPtrGuard(cPtr CPtr, goPtr unsafe.Pointer) *PtrGuard + func (v *PtrGuard) Release() + type SizeT C.size_t + type SizeTCSlice []SizeT + func NewSizeTCSlice(size int) SizeTCSlice + func (v *SizeTCSlice) Free() + func (v *SizeTCSlice) Ptr() CPtr + type SizeTPtr unsafe.Pointer + type SyncBuffer struct + func NewSyncBuffer(cPtr CPtr, data []byte) *SyncBuffer + func (v *SyncBuffer) Release() + func (v *SyncBuffer) Sync()