update dependencies

This commit is contained in:
ston1th 2024-08-24 02:25:05 +02:00
commit b808ce30cb
131 changed files with 10932 additions and 4651 deletions

12
vendor/go.etcd.io/bbolt/unsafe.go generated vendored
View file

@ -1,7 +1,6 @@
package bbolt
import (
"reflect"
"unsafe"
)
@ -26,14 +25,3 @@ func unsafeByteSlice(base unsafe.Pointer, offset uintptr, i, j int) []byte {
// all), so this is believed to be correct.
return (*[maxAllocSize]byte)(unsafeAdd(base, offset))[i:j:j]
}
// unsafeSlice modifies the data, len, and cap of a slice variable pointed to by
// the slice parameter. This helper should be used over other direct
// manipulation of reflect.SliceHeader to prevent misuse, namely, converting
// from reflect.SliceHeader to a Go slice type.
func unsafeSlice(slice, data unsafe.Pointer, len int) {
s := (*reflect.SliceHeader)(slice)
s.Data = uintptr(data)
s.Cap = len
s.Len = len
}