config_validate_params
Description:
public static bool config_validate_params (Structure config, Caps? caps, uint size, uint min_buffers, uint max_buffers)
Validates that changes made to config
are still valid in the context of the expected parameters.
This function is a helper that can be used to validate changes made by a pool to a config when
set_config returns false
. This expects that
caps
haven't changed and that min_buffers
aren't lower then what we initially expected. This does not check if options
or allocator parameters are still valid, won't check if size have changed, since changing the size is valid to adapt padding.
Parameters:
config |
a BufferPool configuration |
caps |
the excepted caps of buffers |
size |
the expected size of each buffer, not including prefix and padding |
min_buffers |
the expected minimum amount of buffers to allocate. |
max_buffers |
the expect maximum amount of buffers to allocate or 0 for unlimited. |
Returns:
|