unsafe

package
v0.0.0-...-ab4d1c7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(bs []byte) string

B2S converts bs to string in an unsafe way.

WARNING: The returned string shares the underlying memory with bs and therefore breaks Go's string immutability guarantee, it shall only be used for temporary conversions with caution!

func S2B

func S2B(s string) []byte

S2B converts s to []byte in an unsafe way.

WARNING: The returned byte slice shares the underlying memory with s and therefore breaks Go's string immutability guarantee, it shall only be used for temporary conversions with caution!

Types

This section is empty.

Jump to

Keyboard shortcuts

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