bin.js 387 B

1234567891011121314151617181920
  1. "use strict";
  2. /**
  3. * mux.js
  4. *
  5. * Copyright (c) Brightcove
  6. * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE
  7. */
  8. var toUnsigned = function toUnsigned(value) {
  9. return value >>> 0;
  10. };
  11. var toHexString = function toHexString(value) {
  12. return ('00' + value.toString(16)).slice(-2);
  13. };
  14. module.exports = {
  15. toUnsigned: toUnsigned,
  16. toHexString: toHexString
  17. };