Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/nsmkv/ebml_unsigned.cpp

14 lines
184 B
C++
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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;
}