Discover Packages
github.com/intuitivelabs/unsafeconv
package
module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Apr 14, 2025
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
README
¶
unsafeconv
This module contains fast conversion functions between string and byte slices,
with no copy or allocation.
These functions should be used only if the byte slice content is never modified
(treated as read-only).
Expand ▾
Collapse ▴
Documentation
¶
Bytes converts a string to a byte slice without any copy or allocations.
The content of the resulting byte slice _must_ not be changed.
Str converts a byte slice to a string without making any copy or allocations.// The content of the underlying byte slice _must_ not be changed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.