Index | Files

package unsafe

import ""


Package Files


func BytesView Uses

func BytesView(s interface{}) []byte

BytesView returns a byte slice view of a slice.

func GoString Uses

func GoString(s []byte) string

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

func SliceOf Uses

func SliceOf(s uintptr) []byte

SliceOf returns a slice from a (native) pointer.

Package unsafe imports 2 packages (graph) and is imported by 6 packages. Updated 2020-07-27. Refresh now. Tools for package owners.