bin.js 350 B

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