Files
native/proto/slice_unsafe.go
zeekay 765c3d0aa1 hanzo-ds/native: de-branded native protocol lib (fork of clickhouse ch-go v0.71.0)
Module path, package names, and identifiers de-branded to native/proto/compress/
pool/tracing. Server wire-protocol strings preserved. Vendored codec surface used
by hanzo-ds/go (proto + compress).
2026-07-10 13:10:07 -07:00

18 lines
318 B
Go

//go:build (amd64 || arm64 || riscv64) && !purego
package proto
import "unsafe"
// slice represents slice header.
//
// Used in optimizations when we can interpret [N]T as [M]byte, where
// M = sizeof(T) * N.
//
// NB: careful with endianness!
type slice struct {
Data unsafe.Pointer
Len uintptr
Cap uintptr
}