summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2025-03-09 17:47:56 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2025-12-01 22:08:04 +0100
commitb1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch)
tree9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
parent[chore] update URLs to forked source (diff)
downloadgotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz
[chore] remove vendor
Diffstat (limited to 'vendor/codeberg.org/gruf/go-kv/v2/format/abi.go')
-rw-r--r--vendor/codeberg.org/gruf/go-kv/v2/format/abi.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go b/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
deleted file mode 100644
index 16b9c8cb9..000000000
--- a/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
+++ /dev/null
@@ -1,25 +0,0 @@
-//go:build go1.24 && !go1.26
-
-package format
-
-import (
- "reflect"
- "unsafe"
-
- "codeberg.org/gruf/go-xunsafe"
-)
-
-// add returns the ptr addition of starting ptr and a delta.
-func add(ptr unsafe.Pointer, delta uintptr) unsafe.Pointer {
- return unsafe.Pointer(uintptr(ptr) + delta)
-}
-
-// typeof is short-hand for reflect.TypeFor[T]().
-func typeof[T any]() reflect.Type {
- return reflect.TypeFor[T]()
-}
-
-const (
- // custom xunsafe.Reflect_flag to indicate key types.
- flagKeyType xunsafe.Reflect_flag = 1 << 10
-)