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