private TFChunk LoadLastChunk(string chunkFileName) { var writePosition = (int)(Config.WriterCheckpoint.Read() % Config.ChunkSize); var chunk = TFChunk.FromOngoingFile(chunkFileName, writePosition); return(chunk); }
private TFChunk LoadLastChunk(string chunkFileName, bool verifyHash) { var pos = Config.WriterCheckpoint.Read(); var writerPosition = (int)(pos % Config.ChunkSize); if (writerPosition == 0 && pos > 0) { writerPosition = Config.ChunkSize; } return(TFChunk.FromOngoingFile(chunkFileName, writerPosition, checkSize: false)); }