mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 07:24:41 +02:00
...
This commit is contained in:
@@ -21,6 +21,5 @@ func UnsafeStringToBytes(s string) (b []byte) {
|
|||||||
// If you modify b, then s will also be modified. This violates the
|
// If you modify b, then s will also be modified. This violates the
|
||||||
// property that strings are immutable.
|
// property that strings are immutable.
|
||||||
func UnsafeBytesToString(b []byte) (s string) {
|
func UnsafeBytesToString(b []byte) (s string) {
|
||||||
unsafe.String(unsafe.SliceData(b), len(b))
|
return unsafe.String(unsafe.SliceData(b), len(b))
|
||||||
return s
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user