Re-design of the original gocryptfs code to work as a library.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// +build arm64 amd64 |
|
|
|
package allocator |
|
|
|
import ( |
|
"C" |
|
"unsafe" |
|
) |
|
|
|
func Malloc(size int) unsafe.Pointer { |
|
return C.malloc(C.ulong(C.sizeof_int * size)) |
|
}
|
|
|