(value, max)
| 2016 | * exceed the maximum allowed value. |
| 2017 | */ |
| 2018 | function verifuint (value, max) { |
| 2019 | assert(typeof value === 'number', 'cannot write a non-number as a number') |
| 2020 | assert(value >= 0, 'specified a negative value for writing an unsigned value') |
| 2021 | assert(value <= max, 'value is larger than maximum value for type') |
| 2022 | assert(Math.floor(value) === value, 'value has a fractional component') |
| 2023 | } |
| 2024 | |
| 2025 | function verifsint (value, max, min) { |
| 2026 | assert(typeof value === 'number', 'cannot write a non-number as a number') |
no test coverage detected