VolumeDescriptor.cs :  » Business-Application » IsoCreator » ISO9660 » PrimitiveTypes » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Business Application » IsoCreator 
IsoCreator » ISO9660 » PrimitiveTypes » VolumeDescriptor.cs
using System;
using System.Collections.Generic;
using System.Text;
using IsoCreator;

namespace ISO9660.PrimitiveTypes{
  internal class VolumeDescriptor {
    // field                          contents
    // ------------------------------              ---------------------------------------------------------
    // [1]
    public byte VolumeDescType;                  // 1, 2, 255

    // [2-7]
    public byte[] StandardIdentifier = new byte[6] { 67, 68, 48, 48, 49, 1 };
                                  /* 67, 68, 48, 48, 49 ( that is "CD001" ) and 1, respectively 
                                   * (same as Volume Descriptor Set Terminator)
                                   */

    // [8]
    public byte Reserved1 = 0;                  // 0

    // [9-40]
    public byte[] SystemId = IsoAlgorithm.MemSet( IsoAlgorithm.SystemIdLength, IsoAlgorithm.AsciiBlank );// system identifier

    // [41-72]
    public byte[] VolumeId = IsoAlgorithm.MemSet( IsoAlgorithm.VolumeIdLength, IsoAlgorithm.AsciiBlank );// volume identifier

    // [73-80]
    public UInt64 Reserved2 = 0;                // 0

    // [81-88]
    public UInt64 VolumeSpaceSize;                // total number of sectors, as a both endian double word

    public byte[] Reserved3_1 = new byte[3] { 37, 47, 69 };    // [89-91]
    // [92-120]
    public byte[] Reserved3_2 = new byte[29];          // zeros

    // [121-124]
    public UInt32 VolumeSetSize = 0x01000001;          // 1, as a both endian word [volume set size]

    // [125-128]
    public UInt32 VolumeSequenceNumber = 0x01000001;      // 1, as a both endian word [volume sequence number]

    // [129-132]
    public UInt32 SectorkSize = 0x00080800;            // 2048 (the sector size), as a both endian word

    // [133-140]
    public UInt64 PathTableSize;                // path table length in bytes, as a both endian double word

    // [141-144]
    public UInt32 TypeLPathTable;                /* number of first sector in first little endian path table,
                                                                   * as a little endian double word
                                                                   */

    // [145-148]
    public UInt32 OptionalTypeLPathTable = 0;          /* number of first sector in second little endian path table,
                                                                   * as a little endian double word, or zero if there is no
                                                                   * second little endian path table
                                                                   */

    // [149-152]
    public UInt32 TypeMPathTable; /* a inverser */        /* number of first sector in first big endian path table,
                                                                   * as a big endian double word
                                                                   */

    // [153-156]
    public UInt32 OptionalTypeMPathTable = 0; /* a inverser */  /* number of first sector in second big endian path table,
                                                                   * as a big endian double word, or zero if there is no
                                                                   * second big endian path table
                                                                   */

    // [157-190]
    public DirectoryRecord RootDirRecord = new DirectoryRecord();// root directory record

    // [191-318]
    public byte[] VolumeSetId = IsoAlgorithm.MemSet( IsoAlgorithm.VolumeSetIdLength, IsoAlgorithm.AsciiBlank );          
                                  // volume set identifier

    // [319-446]
    public byte[] PublisherId = IsoAlgorithm.MemSet( IsoAlgorithm.PublisherIdLength, IsoAlgorithm.AsciiBlank );          
                                  // publisher identifier

    // [447-574]
    public byte[] PreparerId = IsoAlgorithm.MemSet( IsoAlgorithm.PreparerIdLength, IsoAlgorithm.AsciiBlank );
                                  // data preparer identifier

    // [575-702]
    public byte[] ApplicationId = IsoAlgorithm.MemSet( IsoAlgorithm.ApplicationIdLength, IsoAlgorithm.AsciiBlank );        
                                  // application identifier

    // [703-739]
    public byte[] CopyrightFileId = IsoAlgorithm.MemSet( IsoAlgorithm.CopyrightFileIdLength, IsoAlgorithm.AsciiBlank );      
                                  // copyright file identifier

    // [740-776]
    public byte[] AbstractFileId = IsoAlgorithm.MemSet( IsoAlgorithm.AbstractFileIdLength, IsoAlgorithm.AsciiBlank );        
                                  // abstract file identifier

    // [777-813]
    public byte[] BibliographicFileId = IsoAlgorithm.MemSet( IsoAlgorithm.BibliographicFileIdLength, IsoAlgorithm.AsciiBlank );  
                                  // bibliographical file identifier

    // [814-830]
    public AsciiDateRecord CreationDate = new AsciiDateRecord();// date and time of volume creation

    // [831-847]
    public AsciiDateRecord ModificationDate = new AsciiDateRecord();// date and time of most recent modification

    // [848-864]
    public AsciiDateRecord ExpirationDate = new AsciiDateRecord();  // date and time when volume expires

    // [865-881]
    public AsciiDateRecord EffectiveDate = new AsciiDateRecord();  // date and time when volume is effective

    // [882]
    public byte FileStructureVersion = 1;            // 1

    // [883]
    public byte Reserved4 = 0;                  // 0

    // [884-1395]
    public byte[] ApplicationData = new byte[512];        // reserved for application use (usually zeros)

    // [1396-2048]
    public byte[] Reserved5 = new byte[653];          // zeros
    // TOTAL 2048 bytes
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.