MCPcopy Create free account
hub / github.com/chai2010/cgo / NewBytes

Function NewBytes

void_pointer.go:20–24  ·  view source on GitHub ↗

Go []byte slice to C array The C array is allocated in the C heap using malloc. It is the caller's responsibility to arrange for it to be freed, such as by calling C.free (be sure to include stdlib.h if C.free is needed).

(s []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

MallocFunction · 0.85
ByteSliceMethod · 0.80

Tested by

no test coverage detected