unsafe

package
v0.0.0-...-24d46bf Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesString

func BytesString(b []byte) string

convert b to string without copy

Types

type Bytes

type Bytes = []byte

func StringBytes

func StringBytes(s string) Bytes

return GoString's buffer slice(enable modify string)

type Pointer

type Pointer = unsafe.Pointer

func BytesPointer

func BytesPointer(b []byte) Pointer

returns &b[0], which is not allowed in go

func StringPointer

func StringPointer(s string) Pointer

returns &s[0], which is not allowed in go

Jump to

Keyboard shortcuts

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