コード例 #1
0
 public override void Read(string path, byte[] buffer, int size)
 {
     lock (ioLock)
     {
         IRailFile val = rail_api.RailFactory().RailStorageHelper().OpenFile(path);
         if (val != null)
         {
             val.Read(buffer, (uint)size);
             val.Close();
         }
     }
 }
コード例 #2
0
 public override void Read(string path, byte[] buffer, int size)
 {
     lock (this.ioLock)
     {
         IRailFile irailFile = rail_api.RailFactory().RailStorageHelper().OpenFile(path);
         if (irailFile == null)
         {
             return;
         }
         int num = (int)irailFile.Read(buffer, (uint)size);
         irailFile.Close();
     }
 }