3 Star 0 Fork 0

GiteeStudio / codis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cgo_malloc.go 327 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2016 CodisLabs. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.
// +build !cgo_jemalloc
package unsafe2
// #include <stdlib.h>
import "C"
import (
"unsafe"
)
func cgo_malloc(n int) unsafe.Pointer {
return C.malloc(C.size_t(n))
}
func cgo_free(ptr unsafe.Pointer) {
C.free(ptr)
}
1
https://gitee.com/oscstudio/codis.git
git@gitee.com:oscstudio/codis.git
oscstudio
codis
codis
3d19640b1d13

搜索帮助

53164aa7 5694891 3bd8fe86 5694891