1
0

ebml_unsigned.cpp 184 B

12345678910111213
  1. #include "ebml_unsigned.h"
  2. uint64_t unsigned_read_ptr_len(uint64_t len, const uint8_t *ptr)
  3. {
  4. uint64_t val=*ptr++;
  5. while (--len)
  6. {
  7. val <<= 8;
  8. val |= *ptr++;
  9. }
  10. return val;
  11. }