mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-05-23 17:43:01 +00:00
12 lines
320 B
Go
Vendored
12 lines
320 B
Go
Vendored
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package mangling
|
|
|
|
import "unsafe"
|
|
|
|
// hackStringBytes returns the (unsafe) underlying bytes slice of a string.
|
|
func hackStringBytes(str string) []byte {
|
|
return unsafe.Slice(unsafe.StringData(str), len(str))
|
|
}
|