Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopyPrimitive ¶
func UnsafeBytesToString ¶
func UnsafeNonEscape ¶
func UnsafeNonEscape[T any](a []T) []T
Usage: * var stack_mem [100]byte // or stack_mem = []byte{99:0} * var mem_ne = UnsafeNonEscape(stack_mem[:]) * .... * doSomething(mem_ne) * .... * stack_mem[0] = 0 // or _ = stack_mem[0], can be sure that memory is not collected by gc
func UnsafeNonEscapeConv ¶
Usage: * var stack_obj = some_struct{...} * var p = UnsafeNonEscapePtr(&stack_obj) * ... * doSomething(p) * ...
func UnsafeNonEscapePtr ¶
func UnsafeNonEscapePtr[T any](a *T) *T
Usage: * var stack_obj = some_struct{...} * var p = UnsafeNonEscapePtr(&stack_obj) * ... * doSomething(p) * ...
func UnsafeStringToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.