mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-18 04:20:27 +00:00
go*: go get -u ./...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
ce5bddf35e
commit
fa29fcb58d
229 changed files with 28484 additions and 2819 deletions
10
vendor/golang.org/x/sys/windows/syscall.go
generated
vendored
10
vendor/golang.org/x/sys/windows/syscall.go
generated
vendored
|
@ -30,8 +30,6 @@ import (
|
|||
"strings"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/internal/unsafeheader"
|
||||
)
|
||||
|
||||
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
||||
|
@ -83,13 +81,7 @@ func BytePtrToString(p *byte) string {
|
|||
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
||||
}
|
||||
|
||||
var s []byte
|
||||
h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
|
||||
h.Data = unsafe.Pointer(p)
|
||||
h.Len = n
|
||||
h.Cap = n
|
||||
|
||||
return string(s)
|
||||
return string(unsafe.Slice(p, n))
|
||||
}
|
||||
|
||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue