Documentation
¶
Overview ¶
Package conv provides safe integer conversion helpers for the regex engine.
These functions perform bounds checking before narrowing integer conversions to prevent silent overflow. They panic on overflow since this indicates a programming error (e.g., regex pattern too large for internal limits).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntToUint16 ¶
IntToUint16 safely converts an int to uint16. Panics if n < 0 or n > math.MaxUint16.
func IntToUint32 ¶
IntToUint32 safely converts an int to uint32. Panics if n < 0 or n > math.MaxUint32.
func Uint64ToUint16 ¶
Uint64ToUint16 safely converts a uint64 to uint16. Panics if n > math.MaxUint16.
func Uint64ToUint32 ¶
Uint64ToUint32 safely converts a uint64 to uint32. Panics if n > math.MaxUint32.
Types ¶
This section is empty.