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;
51 typedef std::vector<char>::reverse_iterator ReverseIterator;
52 typedef std::vector<char>::const_reverse_iterator ConstReverseIterator;
122 const char *data()
const;
135 char at(
uint index)
const;
143 int find(
const ByteVector &pattern,
uint offset = 0,
int byteAlign = 1)
const;
151 int find(
char c,
uint offset = 0,
int byteAlign = 1)
const;
159 int rfind(
const ByteVector &pattern,
uint offset = 0,
int byteAlign = 1)
const;
168 bool containsAt(
const ByteVector &pattern,
uint offset,
uint patternOffset = 0,
uint patternLength = 0xffffffff)
const;
173 bool startsWith(
const ByteVector &pattern)
const;
178 bool endsWith(
const ByteVector &pattern)
const;
196 int endsWithPartialMatch(
const ByteVector &pattern)
const;
228 ConstIterator begin()
const;
238 ConstIterator end()
const;
243 ReverseIterator rbegin();
248 ConstReverseIterator rbegin()
const;
253 ReverseIterator rend();
258 ConstReverseIterator rend()
const;
274 bool isEmpty()
const;
279 uint checksum()
const;
291 uint toUInt(
bool mostSignificantByteFirst =
true)
const;
303 uint toUInt(
uint offset,
bool mostSignificantByteFirst =
true)
const;
327 short toShort(
bool mostSignificantByteFirst =
true)
const;
338 short toShort(
uint offset,
bool mostSignificantByteFirst =
true)
const;
349 unsigned short toUShort(
bool mostSignificantByteFirst =
true)
const;
360 unsigned short toUShort(
uint offset,
bool mostSignificantByteFirst =
true)
const;
372 long long toLongLong(
bool mostSignificantByteFirst =
true)
const;
384 long long toLongLong(
uint offset,
bool mostSignificantByteFirst =
true)
const;
405 static ByteVector fromShort(
short value,
bool mostSignificantByteFirst =
true);
416 static ByteVector fromLongLong(
long long value,
bool mostSignificantByteFirst =
true);
421 static ByteVector fromCString(
const char *s,
uint length = 0xffffffff);
426 const char &operator[](
int index)
const;
431 char &operator[](
int index);
447 bool operator==(
const char *s)
const;
453 bool operator!=(
const char *s)
const;
507 class ByteVectorPrivate;
508 ByteVectorPrivate *d;