|
TagLib API Documentation
|
|
|
Go to the documentation of this file.
22#ifndef TAGLIB_MODFILEPRIVATE_H
23#define TAGLIB_MODFILEPRIVATE_H
26#define READ_ASSERT(cond) \
34#define READ(setter, type, read) \
37 READ_ASSERT(read(number)); \
41#define READ_BYTE(setter) READ(setter, unsigned char, readByte)
42#define READ_U16L(setter) READ(setter, unsigned short, readU16L)
43#define READ_U32L(setter) READ(setter, unsigned long, readU32L)
44#define READ_U16B(setter) READ(setter, unsigned short, readU16B)
45#define READ_U32B(setter) READ(setter, unsigned long, readU32B)
47#define READ_STRING(setter, size) \
50 READ_ASSERT(readString(s, size)); \
54#define READ_AS(type, name, read) \
56 READ_ASSERT(read(name))
58#define READ_BYTE_AS(name) READ_AS(unsigned char, name, readByte)
59#define READ_U16L_AS(name) READ_AS(unsigned short, name, readU16L)
60#define READ_U32L_AS(name) READ_AS(unsigned long, name, readU32L)
61#define READ_U16B_AS(name) READ_AS(unsigned short, name, readU16B)
62#define READ_U32B_AS(name) READ_AS(unsigned long, name, readU32B)
64#define READ_STRING_AS(name, size) \
66 READ_ASSERT(readString(name, size))