mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-11-15 01:44:56 -05:00
13 lines
184 B
C++
13 lines
184 B
C++
#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;
|
|
}
|
|
|