libgocryptfs/allocator/allocator32.go
2021-06-11 15:52:46 +02:00

14 lines
168 B
Go

// +build !arm64
// +build !amd64
package allocator
import (
"C"
"unsafe"
)
func Malloc(size int) unsafe.Pointer {
return C.malloc(C.uint(C.sizeof_int * size))
}