public Block Read(SharpMedia.Database.Physical.Caching.BlockType type, ulong address) { // First check if already written to. KeyValuePair <BlockType, byte[]> value; if (blocksWritten.TryGetValue(address, out value)) { return(new Block((byte[])value.Value.Clone())); } return(new Block(provider.Read(type, address))); }
public Block Read(SharpMedia.Database.Physical.Caching.BlockType type, ulong address) { return(new Block(provider.Read(type, address))); }