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(); } } }
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(); } }