Documentation ¶
Overview ¶
Package xunsafe provides utilities for unsafe operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts a byte slice to a string without memory allocation.
The byte slice must not be used, modified, or reallocated after this call since the returned string references the same memory.
func StringToBytes ¶
StringToBytes converts a string to a byte slice without memory allocation.
The string must not be used, modified, or reallocated after this call since the returned byte slice references the same memory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.