package utils

Import Path
	github.com/apache/arrow-go/v18/internal/utils (on go.dev)

Dependency Relation
	imports 13 packages, and imported by 8 packages


Package-Level Type Names (only one)
/* sort by: | */
( Reader) Read(p []byte) (n int, err error) ( Reader) ReadAt(p []byte, off int64) (n int, err error) ( Reader) Seek(offset int64, whence int) (int64, error) github.com/apache/arrow-go/v18/arrow/ipc.ReadAtSeeker (interface) github.com/coreos/etcd/pkg/fileutil.LockedFile *github.com/klauspost/compress/s2.ReadSeeker *github.com/polarsignals/wal/fs.File *bytes.Reader *io.SectionReader mime/multipart.File (interface) *os.File *strings.Reader Reader : github.com/apache/arrow-go/v18/arrow/ipc.ReadAtSeeker Reader : github.com/apache/arrow-go/v18/parquet.ReaderAtSeeker Reader : io.Reader Reader : io.ReaderAt Reader : io.ReadSeeker Reader : io.Seeker func github.com/apache/arrow-go/v18/parquet.BufferedReader.Outer() Reader func NewBufferedReader(rd Reader, sz int) *bufferedReader func github.com/apache/arrow-go/v18/parquet.BufferedReader.Reset(Reader)
Package-Level Functions (total 20)
Type Parameters: T: constraints.Signed Add returns the sum of two integers while checking for [overflow]. It returns false (not ok) when the operation overflows.
FormatRecoveredError is used in cases where a panic/recover receives an object which is potentially an error that could be wrapped, instead of formatted, so that callers can see it. This may be useful, for example, with custom Allocators which panic to signal failure; these panics will be recovered as wrapped errors, letting the client distinguish them.
GetMinMaxInt16 returns the min and max for a int16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxInt32 returns the min and max for a int32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxInt64 returns the min and max for a int64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxInt8 returns the min and max for a int8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxUint16 returns the min and max for a uint16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxUint32 returns the min and max for a uint32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxUint64 returns the min and max for a uint64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
GetMinMaxUint8 returns the min and max for a uint8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
Type Parameters: T: cmp.Ordered
Type Parameters: T: cmp.Ordered
Mul returns the product of two integers while checking for [overflow]. It returns false (not ok) when the operation overflows.
Mul64 returns the product of two integers while checking for [overflow]. It returns false (not ok) when the operation overflows.
NewBufferedReader returns a buffered reader with similar semantics to bufio.Reader except Peek will expand the internal buffer if needed rather than return an error.
NewByteReader creates a new ByteReader instance from the given byte slice. It wraps the bytes.NewReader function to implement BufferedReader interface.
NewRefCount creates a new atomic counter set to the specified initial value.
Type Parameters: T: constraints.Integer | constraints.Float
TransposeInts expects two integral slices and the values they map to. Returning an error if either src or dest are not an integral type.
TransposeIntsBuffers takes the data-types, byte buffers, and offsets of a source and destination buffer to perform TransposeInts on with the provided mapping data.
Package-Level Variables (total 72)
var ToLEInt16 func(x int16) int16
var ToLEInt32 func(x int32) int32
var ToLEInt64 func(x int64) int64
var ToLEUint16 func(x uint16) uint16
var ToLEUint32 func(x uint32) uint32
var ToLEUint64 func(x uint64) uint64