Esempio n. 1
0
 public Footer(Header header)
 {
     this.major_version = header.MajorVersion;
     this.revision_number = header.RevisionNumber;
     this.flags = (HeaderFlags) ((byte) (header.Flags | HeaderFlags.FooterPresent));
     this.tag_size = header.TagSize;
 }
Esempio n. 2
0
 public Footer (Header header)
 {
    major_version   = header.MajorVersion;
    revision_number = header.RevisionNumber;
    flags           = header.Flags | HeaderFlags.FooterPresent;
    tag_size        = header.TagSize;
 }
Esempio n. 3
0
 private TagTypes ReadTagInfo(ref long position)
 {
     this.file.Seek(position);
     ByteVector data = this.file.ReadBlock(this.read_size);
     try
     {
         if (data.StartsWith(TagLib.Ape.Footer.FileIdentifier))
         {
             TagLib.Ape.Footer footer = new TagLib.Ape.Footer(data);
             position += footer.CompleteTagSize;
             return (TagTypes.None | TagTypes.Ape);
         }
         if (data.StartsWith(Header.FileIdentifier))
         {
             Header header = new Header(data);
             position += header.CompleteTagSize;
             return (TagTypes.None | TagTypes.Id3v2);
         }
     }
     catch (CorruptFileException)
     {
     }
     return TagTypes.None;
 }