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

ByteVector TagLib::Riff::List::RenderEnclosed ( ByteVector  id  )  [inline]

Renders the current instance enclosed in an item with a specified ID.

id A ByteVector object containing the ID of the item to enclose the current instance in.
A ByteVector object containing the rendered version of the current instance.
ArgumentNullException id is .
ArgumentException id isn't exactly four bytes long.

Definition at line 184 of file List.cs.

                  if (id == null)
                        throw new ArgumentNullException ("id");
                  if (id.Count != 4)
                        throw new ArgumentException (
                              "ID must be 4 bytes long.", "id");
                  ByteVector data = Render ();
                  if (data.Count <= 8)
                        return new ByteVector ();
                  ByteVector header = new ByteVector ("LIST");
                  header.Add (ByteVector.FromUInt (
                        (uint) (data.Count + 4), false));
                  header.Add (id);
                  data.Insert (0, header);
                  return data;

Generated by  Doxygen 1.6.0   Back to index