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

TagLib::Riff::DivXTag::DivXTag ( ByteVector  data  )  [inline]

Constructs and initializes a new instance of DivXTag by reading the contents raw tag data stored in a specified ByteVector object.

data A ByteVector containing a raw DivX tag to read into the new instance.
ArgumentNullException data is .
CorruptFileException The file does not contain the file identifier at the correct offset from the given position.

Definition at line 173 of file DivXTag.cs.

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

                  if (data == null)
                        throw new ArgumentNullException ("data");
                  if (data.Count < Size)
                        throw new CorruptFileException (
                              "DivX tag data is less than 128 bytes long.");
                  if (!data.EndsWith (FileIdentifier))
                        throw new CorruptFileException (
                              "DivX tag data does not end with identifier.");
                  Parse (data);

Generated by  Doxygen 1.6.0   Back to index