unsafe

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT, Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary added in v1.7.12

func Binary(p unsafe.Pointer, n int) (r []byte)

func Cast

func Cast[T1, T2 any](p *T2) *T1

func CastSlice

func CastSlice[T1, T2 any](s []T2) []T1

func Clear added in v1.7.12

func Clear[T any](ptr *T)

func FromUnsafePtr added in v1.11.0

func FromUnsafePtr(p unsafe.Pointer, n int64) (s string)

func IndexByte added in v1.11.0

func IndexByte(ptr []byte, index int) unsafe.Pointer

func IndexChar added in v1.11.0

func IndexChar(src string, index int) unsafe.Pointer

func NoEscape

func NoEscape(p unsafe.Pointer) unsafe.Pointer

func UnsafePtr added in v1.11.0

func UnsafePtr(s string) unsafe.Pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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