21#ifndef TAGLIB_EBMLUTILS_H
22#define TAGLIB_EBMLUTILS_H
23#ifndef DO_NOT_DOCUMENT
34 std::unique_ptr<Element> findElement(File &file, Element::Id
id,
offset_t maxOffset);
35 std::unique_ptr<Element> findNextElement(File &file,
offset_t maxOffset);
37 template <
int maxSizeLength>
38 unsigned int VINTSizeLength(uint8_t firstByte);
40 std::pair<unsigned int, uint64_t> readVINT(File &file);
42 std::pair<unsigned int, uint64_t> parseVINT(
const ByteVector &buffer);
44 ByteVector renderVINT(uint64_t number,
int minSizeLength);
46 unsigned long long randomUID();
48 constexpr int minSize(uint64_t data)
56 if(data <= 0xFFFFFFFu)
58 if(data <= 0x7FFFFFFFFu)
63 constexpr int idSize(Element::Id
id)
65 const auto uintId =
static_cast<unsigned int>(id);
70 if(uintId <= 0xFFFFFF)
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
off_t offset_t
Definition taglib.h:64