unsafe

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build[E any](ptr unsafe.Pointer, len, cap int) (s []E)

func Convert

func Convert[EI, EO any](s []EI, len, cap int) (os []EO)

func String

func String(bs []byte) string

Types

type Slice

type Slice[E any] struct {
	Ptr unsafe.Pointer
	Len int
	Cap int
}

func Struct

func Struct[E any](s []E) Slice[E]

func StructP

func StructP[E any](sp *[]E) *Slice[E]

func (Slice[E]) Slice

func (s Slice[E]) Slice() (es []E)

Jump to

Keyboard shortcuts

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