07.C_CBytes

command
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: MIT Imports: 1 Imported by: 0

README

C.CBytes

C.CBytes()は、GoのスライスをC側のバイト列に変換する。戻り値はunsafe.Pointerとなる。(つまり、(void *))

C.CBytes()は、内部でmallocを呼び出しヒープメモリを確保するので、利用後に必ずC.free()を呼び出してメモリを解放する必要がある。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL