26 #ifndef TAGLIB_BYTEVECTOR_H
27 #define TAGLIB_BYTEVECTOR_H
48 #ifndef DO_NOT_DOCUMENT
49 typedef std::vector<char>::iterator Iterator;
50 typedef std::vector<char>::const_iterator ConstIterator;
115 const char *data()
const;
128 char at(
uint index)
const;
136 int find(
const ByteVector &pattern,
uint offset = 0,
int byteAlign = 1)
const;
144 int rfind(
const ByteVector &pattern,
uint offset = 0,
int byteAlign = 1)
const;
153 bool containsAt(
const ByteVector &pattern,
uint offset,
uint patternOffset = 0,
uint patternLength = 0xffffffff)
const;
158 bool startsWith(
const ByteVector &pattern)
const;
163 bool endsWith(
const ByteVector &pattern)
const;
181 int endsWithPartialMatch(
const ByteVector &pattern)
const;
213 ConstIterator begin()
const;
223 ConstIterator end()
const;
239 bool isEmpty()
const;
244 uint checksum()
const;
256 uint toUInt(
bool mostSignificantByteFirst =
true)
const;
267 short toShort(
bool mostSignificantByteFirst =
true)
const;
278 unsigned short toUShort(
bool mostSignificantByteFirst =
true)
const;
290 long long toLongLong(
bool mostSignificantByteFirst =
true)
const;
311 static ByteVector fromShort(
short value,
bool mostSignificantByteFirst =
true);
322 static ByteVector fromLongLong(
long long value,
bool mostSignificantByteFirst =
true);
327 static ByteVector fromCString(
const char *s,
uint length = 0xffffffff);
332 const char &operator[](
int index)
const;
337 char &operator[](
int index);
353 bool operator==(
const char *s)
const;
359 bool operator!=(
const char *s)
const;
413 class ByteVectorPrivate;
414 ByteVectorPrivate *d;
static ByteVector null
Definition: tbytevector.h:397
unsigned int uint
Definition: taglib.h:83
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::ByteVector &v)
A byte vector.
Definition: tbytevector.h:45
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
TAGLIB_EXPORT uint toUInt(const ByteVector &data)
TAGLIB_EXPORT ByteVector fromUInt(uint value)