(value, max)
| 48701 | * exceed the maximum allowed value. |
| 48702 | */ |
| 48703 | function verifuint (value, max) { |
| 48704 | assert(typeof value === 'number', 'cannot write a non-number as a number') |
| 48705 | assert(value >= 0, 'specified a negative value for writing an unsigned value') |
| 48706 | assert(value <= max, 'value is larger than maximum value for type') |
| 48707 | assert(Math.floor(value) === value, 'value has a fractional component') |
| 48708 | } |
| 48709 | |
| 48710 | function verifsint (value, max, min) { |
| 48711 | assert(typeof value === 'number', 'cannot write a non-number as a number') |
no test coverage detected