Back to

package unsafe

v0.0.0 (278e9bc)
Latest Go to latest
Published: Jun 3, 2020 | Licenses: MIT, Unlicense | Module:


func BytesView

func BytesView(s interface{}) []byte

BytesView returns a byte slice view of a slice.

func GoString

func GoString(s []byte) string

GoString convert a NUL-terminated C string to a Go string.

func SliceOf

func SliceOf(s uintptr) []byte

SliceOf returns a slice from a (native) pointer.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier