~ubuntu-branches/debian/sid/hipo/sid

« back to all changes in this revision

Viewing changes to taglib-sharp/TagLib/Asf/UnknownObject.cs

  • Committer: Bazaar Package Importer
  • Author(s): Arthur Loiret
  • Date: 2008-04-02 15:37:34 UTC
  • mfrom: (1.1.3 upstream) (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080402153734-hnz2ia2tj3zox4z8
Tags: 0.6.1-2
* 0001-Remove-deprecated-Encoding-field-from-hipo.desktop.i.patch: Add,
  taken from Ubuntu.
* Let's hope Ubuntu maintainer Miguel Ruiz will send its patches back to
  Debian next time.
* debian/copyright: Rewrite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
    copyright            : (C) 2005 by Brian Nickel
3
 
    email                : brian.nickel@gmail.com
4
 
 ***************************************************************************/
5
 
 
6
 
/***************************************************************************
7
 
 *   This library is free software; you can redistribute it and/or modify  *
8
 
 *   it  under the terms of the GNU Lesser General Public License version  *
9
 
 *   2.1 as published by the Free Software Foundation.                     *
10
 
 *                                                                         *
11
 
 *   This library is distributed in the hope that it will be useful, but   *
12
 
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
13
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
14
 
 *   Lesser General Public License for more details.                       *
15
 
 *                                                                         *
16
 
 *   You should have received a copy of the GNU Lesser General Public      *
17
 
 *   License along with this library; if not, write to the Free Software   *
18
 
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
19
 
 *   USA                                                                   *
20
 
 ***************************************************************************/
21
 
 
22
 
namespace TagLib.Asf
23
 
{
24
 
   public class UnknownObject : Object
25
 
   {
26
 
      //////////////////////////////////////////////////////////////////////////
27
 
      // private properties
28
 
      //////////////////////////////////////////////////////////////////////////
29
 
      private ByteVector data;
30
 
      
31
 
      
32
 
      //////////////////////////////////////////////////////////////////////////
33
 
      // public methods
34
 
      //////////////////////////////////////////////////////////////////////////
35
 
      public UnknownObject (Asf.File file, long position) : base (file, position)
36
 
      {
37
 
         data = file.ReadBlock ((int) (OriginalSize - 24));
38
 
      }
39
 
      
40
 
      public override ByteVector Render ()
41
 
      {
42
 
         return Render (data);
43
 
      }
44
 
      
45
 
      //////////////////////////////////////////////////////////////////////////
46
 
      // public properties
47
 
      //////////////////////////////////////////////////////////////////////////
48
 
      public ByteVector Data {get {return data;} set {data = value;}}
49
 
   }
50
 
}