Documentation ¶
Overview ¶
Package unsafes provides the low-level unsafe functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSlice ¶
ByteSlice converts a strings into the equivalent byte slice without doing the actual copy of the data. The slice returned by this function may be read-only. See examples for more details.
Types ¶
type SliceHeader ¶
SliceHeader is the same as reflect.SliceHeader but with unsafe.Pointers to guarantee they don't get collected by the GC.
type StringHeader ¶
StringHeader is the same as reflect.StringHeader but with unsafe.Pointers to guarantee they don't get collected by the GC.
Click to show internal directories.
Click to hide internal directories.