unsafe

package
v0.0.0-...-6019ff8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSlice

func ByteSlice(s *string) []byte

ByteSlice returns s as a byte slice without copying, any attempt to modifythe resulting slice might end all life as we know.

func VoidToBytes

func VoidToBytes(p unsafe.Pointer, ln int) []byte

VoidToBytes is a helper function to convert a void* buffer from a cgo call to a byte slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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