ununsafe

package module
v0.0.0-...-38c5d65 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 2 Imported by: 0

README

ununsafe

Go Reference Go Report Card Test

A slightly safer version of unsafe.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

func ScalarToScalar

func ScalarToScalar[From, To any](from From) To

func ScalarToVector

func ScalarToVector[From, To any](from From) []To

func SizeOf

func SizeOf[T any]() uint64

func StringToBytes

func StringToBytes(s string) []byte

func UpdateScalar

func UpdateScalar[From, To any](from *From, fn func(*To))

func UpdateVector

func UpdateVector[From, To any](arr []From, fn func(To) To) []From

func VectorToScalar

func VectorToScalar[From, To any](arr []From) To

func VectorToVector

func VectorToVector[From, To any](arr []From) []To

Types

This section is empty.

Jump to

Keyboard shortcuts

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