c:realloc
This commit is contained in:
3
c/c.go
3
c/c.go
@@ -85,6 +85,9 @@ func Calloc(num uintptr, size uintptr) Pointer
|
|||||||
//go:linkname Free C.free
|
//go:linkname Free C.free
|
||||||
func Free(ptr Pointer)
|
func Free(ptr Pointer)
|
||||||
|
|
||||||
|
//go:linkname Realloc C.realloc
|
||||||
|
func Realloc(ptr Pointer, size uintptr) Pointer
|
||||||
|
|
||||||
//go:linkname Memcpy C.memcpy
|
//go:linkname Memcpy C.memcpy
|
||||||
func Memcpy(dst, src Pointer, n uintptr) Pointer
|
func Memcpy(dst, src Pointer, n uintptr) Pointer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user