コード例 #1
0
 static void Main(string[] args)
 {
     using (ComplexFile cf = ComplexFile.OpenOrCreate("twoja_stara"))
     {
         cf.CreateDirectory("zapierdala2", "root");
     }
 }
コード例 #2
0
 public ProxyStream(ComplexFile cf, FileHeader fileHeader)
 {
     settings   = ComplexFile.Settings;
     this.cf    = (FileStream)cf;
     startBlock = fileHeader.BlockNumber;
     size       = (long)fileHeader.Size;
     Position   = 0;
 }
コード例 #3
0
        /*
        ** Create ComplexFile with specified name
        */
        public static ComplexFile Create(string path, ICFSettings settings)
        {
            ComplexFile complexFile = new ComplexFile(path, FileMode.Create);

            complexFile.Write(Utilities.ToBytes(Settings), 0, Settings.BlockSize);
            complexFile.Write(new byte[Settings.BlockSize], 0, Settings.BlockSize);
            complexFile.Close();
            return(Open(path));
        }