Documentation ¶
Index ¶
- Constants
- type CPPError
- type CPPErrorImpl
- func (cppe *CPPErrorImpl) Error() string
- func (cppe *CPPErrorImpl) Free()
- func (cppe *CPPErrorImpl) GetErrorMessage() *string
- func (cppe *CPPErrorImpl) GetFuncReturnStructValue(CStructTypeId uint32) unsafe.Pointer
- func (cppe *CPPErrorImpl) GetFuncReturnType() int
- func (cppe *CPPErrorImpl) GetFuncReturnValue() interface{}
Constants ¶
View Source
const BOOL_TYPE = int(C.BOOL_TYPE)
View Source
const DOUBLE_TYPE = int(C.DOUBLE_TYPE)
View Source
const INT_TYPE = int(C.INT_TYPE)
View Source
const STRING_TYPE = int(C.STRING_TYPE)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPPErrorImpl ¶
type CPPErrorImpl struct {
// contains filtered or unexported fields
}
func NewCPPErrorImpl ¶
func NewCPPErrorImpl(ptr unsafe.Pointer) *CPPErrorImpl
NewCPPErrorImpl is a constructor
func (*CPPErrorImpl) Error ¶
func (cppe *CPPErrorImpl) Error() string
Error returns the error message
func (*CPPErrorImpl) Free ¶
func (cppe *CPPErrorImpl) Free()
Free deallocates the memory allocated to cppe.Ptr.
func (*CPPErrorImpl) GetErrorMessage ¶
func (cppe *CPPErrorImpl) GetErrorMessage() *string
GetErrorMessage returns a pointer to the error message
func (*CPPErrorImpl) GetFuncReturnStructValue ¶
func (cppe *CPPErrorImpl) GetFuncReturnStructValue(CStructTypeId uint32) unsafe.Pointer
GetFuncReturnStructValue returns the value of the cppe's delgated function. The return type will be the type that maps to the Struct with id CStructTypeId
func (*CPPErrorImpl) GetFuncReturnType ¶
func (cppe *CPPErrorImpl) GetFuncReturnType() int
GetFuncReturnType returns the type id of the cppe's delegated function
func (*CPPErrorImpl) GetFuncReturnValue ¶
func (cppe *CPPErrorImpl) GetFuncReturnValue() interface{}
GetFuncReturnValue returns the value of the cppe's delegated function
Click to show internal directories.
Click to hide internal directories.