fastconv

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(str string) []byte

Fast conversion of a string to a byte slice. Must not be used if the resulting byte slice could be mutated.

func Slice

func Slice[O, I any](input []I) (output []O)

Fast conversion of a slice of one type to a slice of another type without copying. Use only if type I can be converted to type O.

func String

func String(bytes []byte) string

Fast conversion of a byte slice to a string. The bytes argument can be nil. Must not be used if the byte slice could be mutated.

func TypePointer

func TypePointer(a any) uintptr

Returns type pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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