コード例 #1
0
ファイル: acl.go プロジェクト: naegelejd/go-acl
// String returns the string representation of the ACL.
func (acl *ACL) String() string {
	cs, _ := C.acl_to_text(acl.a, nil)
	if cs == nil {
		return ""
	}
	defer C.acl_free(unsafe.Pointer(cs))
	return C.GoString(cs)
}
コード例 #2
0
ファイル: acl.go プロジェクト: naegelejd/go-acl
// Free releases the memory used by the ACL.
func (acl *ACL) Free() {
	C.acl_free(unsafe.Pointer(acl.a))
}
コード例 #3
0
ファイル: acl.go プロジェクト: polachok/go-acl
func Free(this *ACL) {
	C.acl_free(unsafe.Pointer(this.ptr))
}