Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BStoS ¶
BStoS converts a byte slice to a string. WARNING: this should only be used when the byte slice is final. If the byte slice is modified the string may change which is illegal since strings are immutable. This is an optimization (to avoid allocation) that should not be overused.
func Btobs ¶
Btobs converts a byte to a byte slice without allocating. WARNING: The resulting byte slice must not be modified or escape.
func Stobs ¶
Stobs converts a string to a byte slice without allocating a copy. WARNING: The resulting byte slice must not be modified. If the byte slice is modified the string will change which is illegal since strings are immutable. This is an optimization (to avoid allocation) that should not be overused.
Types ¶
This section is empty.