internal LiteFileStream(DbEngine engine, LiteFileInfo file) { _engine = engine; FileInfo = file; if (file.Length == 0) { throw LiteException.FileCorrupted(file); } _positionInChunk = 0; _currentChunkIndex = 0; _currentChunkData = GetChunkData(_currentChunkIndex); }
internal LiteFileStream(LiteDatabase db, LiteFileInfo file) { _db = db; _file = file; if (file.Length == 0) { throw LiteException.FileCorrupted(file); } _positionInChunk = 0; _currentChunkIndex = 0; _currentChunkData = this.GetChunkData(_currentChunkIndex); }