コード例 #1
0
 public RedFS_FSID read_fsid(int fsid)
 {
     if (!initialized)
     {
         return(null);
     }
     lock (dfile)
     {
         byte[] buffer = new byte[4096];
         dfile.Seek((long)fsid * 4096, SeekOrigin.Begin);
         dfile.Read(buffer, 0, 4096);
         RedFS_FSID fs = new RedFS_FSID(fsid, buffer);
         return(fs);
     }
 }
コード例 #2
0
 public bool write_fsid(RedFS_FSID wbfsid)
 {
     if (!initialized)
     {
         return(false);
     }
     lock (dfile)
     {
         dfile.Seek((long)wbfsid.get_fsid() * 4096, SeekOrigin.Begin);
         dfile.Write(wbfsid.data, 0, 4096);
         dfile.Flush();
         wbfsid.set_dirty(false);
     }
     return(true);
 }
コード例 #3
0
 public Drive_Properties(RedFS_FSID fsid)
 {
     InitializeComponent();
 }