web 3d图形渲染器

7 lines
224 B

  1. var toPositiveInteger = require('../internals/to-positive-integer');
  2. module.exports = function (it, BYTES) {
  3. var offset = toPositiveInteger(it);
  4. if (offset % BYTES) throw RangeError('Wrong offset');
  5. return offset;
  6. };