indirect

package
v0.30.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package indirect provides overflow-safe arithmetic for indirect draw spans.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelegatedValidationOffset

func DelegatedValidationOffset(bufferSize, offset, recordSize uint64, count uint32) uint64

DelegatedValidationOffset returns the last record offset for a span, or the buffer size when offset arithmetic overflows. Backends with single-record validation can use it to delegate one deterministic failing operation.

func RangeFits

func RangeFits(bufferSize, offset, recordSize uint64, count uint32) bool

RangeFits reports whether count consecutive records fit in a buffer.

func RecordOffset

func RecordOffset(offset, recordSize uint64, index uint32) (uint64, bool)

RecordOffset returns the byte offset of a record without uint64 wraparound.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL