libgocryptfs/allocator/allocator32.go

14 lines
168 B
Go
Raw Normal View History

2021-06-08 21:25:50 +02:00
// +build !arm64
// +build !amd64
package allocator
import (
"C"
"unsafe"
)
func Malloc(size int) unsafe.Pointer {
return C.malloc(C.uint(C.sizeof_int * size))
}