public void ReadCache(RemoteDiskCache cache, byte[] buff, int buffOffset, int offset, int length) { lock (cache.tempostr){ cache.tempostr.Seek(this.position + offset, System.IO.SeekOrigin.Begin); length = cache.tempostr.Read(buff, buffOffset, length); } }
public void WriteCache(RemoteDiskCache cache, byte[] buff, int buffOffset, int offset, int length) { lock (cache.tempostr){ cache.tempostr.Seek(this.position + offset, System.IO.SeekOrigin.Begin); cache.tempostr.Write(buff, buffOffset, length); } this.dt = System.DateTime.Now; }
public File(string name, RemoteDiskCache parent) { this.name = name; this.parent = parent; }