File: FileBox.cs

package info (click to toggle)
banshee 0.11.2%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,976 kB
  • ctags: 9,958
  • sloc: cs: 54,529; xml: 21,240; sh: 8,835; ansic: 2,040; makefile: 1,248
file content (34 lines) | stat: -rw-r--r-- 1,492 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
namespace TagLib.Mpeg4
{
   public class FileBox : Box
   {
      //////////////////////////////////////////////////////////////////////////
      // private properties
      //////////////////////////////////////////////////////////////////////////
      private File file;
      
      
      //////////////////////////////////////////////////////////////////////////
      // public methods
      //////////////////////////////////////////////////////////////////////////
      
      // FileBox cannot be read from a file and is a seed box for a file.
      public FileBox (File file) : base (null)
      {
         this.file = file;
      }
      
      
      //////////////////////////////////////////////////////////////////////////
      // public properties
      //////////////////////////////////////////////////////////////////////////
      public    override bool       IsValid           {get {return file.IsValid;}}
      public    override bool       HasChildren       {get {return true;}}
      public    override File       File              {get {return file;}}
      public    override ByteVector BoxType           {get {return "FILE";}}
      public    override ulong      BoxSize           {get {return (ulong) file.Length;}}
      protected override long       DataPosition      {get {return 0;}}
      public    override long       NextBoxPosition   {get {return file.Length;}}
      public    override ByteVector Data              {get {return null;} set {}}
   }
}