Initial commit and macOS install

This commit is contained in:
Filippo Valsorda
2018-06-25 01:32:41 -04:00
commit cbca29dc62
28 changed files with 3620 additions and 0 deletions

20
vendor/github.com/DHowett/go-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
}