mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
14b4c021d0
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.91 to 7.0.92. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.91...v7.0.92) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-version: 7.0.92 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
21 lines
371 B
Go
21 lines
371 B
Go
//go:build !appengine && !tinygo
|
|
// +build !appengine,!tinygo
|
|
|
|
package fwd
|
|
|
|
import (
|
|
"reflect"
|
|
"unsafe"
|
|
)
|
|
|
|
// unsafe cast string as []byte
|
|
func unsafestr(s string) []byte {
|
|
var b []byte
|
|
sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s))
|
|
bHdr := (*reflect.SliceHeader)(unsafe.Pointer(&b))
|
|
bHdr.Data = sHdr.Data
|
|
bHdr.Len = sHdr.Len
|
|
bHdr.Cap = sHdr.Len
|
|
return b
|
|
}
|