Import howett.net/plist by its correct name

Also bumping the version to one with a go.mod.
This commit is contained in:
Filippo Valsorda
2019-06-02 12:55:44 +01:00
parent e9f8fbcdf4
commit 72ec55f07f
29 changed files with 22 additions and 6 deletions

20
vendor/howett.net/plist/zerocopy.go generated vendored Normal file
View File

@@ -0,0 +1,20 @@
// +build !appengine
package plist
import (
"reflect"
"unsafe"
)
func zeroCopy8BitString(buf []byte, off int, len int) string {
if len == 0 {
return ""
}
var s string
hdr := (*reflect.StringHeader)(unsafe.Pointer(&s))
hdr.Data = uintptr(unsafe.Pointer(&buf[off]))
hdr.Len = len
return s
}