Static
validateValidates buffer and throws descriptive error.
The buffer to validate
Optional
expectedLength: numberOptional expected length
The parameter name for error reporting
Static
validateStatic
validateStatic
validateStatic
validateValidates numeric range with enhanced checks.
The value to validate
Minimum allowed value
Maximum allowed value
The parameter name for error reporting
Whether the value must be an integer
Static
validateStatic
validateValidates string input with comprehensive checks.
The value to validate
The parameter name for error reporting
Minimum required length
Optional
maxLength: numberOptional maximum length
Utility class for comprehensive input validation with improved error messages.