Expand description
Utility functions and helpers for AmateRS
Common utility functions used across the codebase.
Functionsยง
- align_
to - Align value to alignment boundary
- calculate_
checksum - Calculate checksum for data
- current_
timestamp_ micros - Get current timestamp in microseconds since UNIX epoch
- current_
timestamp_ millis - Get current timestamp in milliseconds since UNIX epoch
- exponential_
backoff - Calculate exponential backoff delay
- format_
bytes - Format bytes as human-readable string
- format_
duration - Format duration as human-readable string
- is_
power_ of_ two - Check if a number is power of 2
- linear_
backoff - Calculate linear backoff delay
- next_
power_ of_ two - Round up to next power of 2
- retry_
with_ backoff - Retry a function with exponential backoff
- verify_
checksum - Verify checksum