soroban_env_host::budget

Constant DEFAULT_XDR_RW_LIMITS

Source
pub const DEFAULT_XDR_RW_LIMITS: Limits;
Expand description

These constants are used to set limits on recursion and data length in the context of XDR (de)serialization. They serve as safeguards against both excessive stack allocation, which could cause an unrecoverable SIGABRT, and excessive heap memory allocation.