Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

static void TagLib::Id3v2::SynchData::ResynchByteVector ( ByteVector  data ) [inline, static]

Resynchronizes a ByteVector object by removing the added bytes.

dataA ByteVector object to resynchronize.
ArgumentNullExceptiondata is .

Definition at line 134 of file SynchData.cs.

References TagLib::ByteVector::Count, and TagLib::ByteVector::RemoveAt().

Referenced by TagLib::Id3v2::Frame::FieldData(), and TagLib::Id3v2::Tag::Parse().

                  if (data == null)
                        throw new ArgumentNullException ("data");
                  for (int i = data.Count - 2; i >= 0; i --)
                        if (data [i] == 0xFF && data [i+1] == 0)
                              data.RemoveAt (i+1);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index