internal virtual void Write(PageCursor cursor, long unstableGeneration, long pageId, int pos) { if (pageId == NoPageId) { throw new System.ArgumentException("Tried to write pageId " + pageId + " which means null"); } AssertPos(pos); GenerationSafePointer.AssertGenerationOnWrite(unstableGeneration); cursor.Offset = EntryOffset(pos); cursor.PutInt(( int )unstableGeneration); put6BLong(cursor, pageId); }
internal static void SetGeneration(PageCursor cursor, long generation) { GenerationSafePointer.AssertGenerationOnWrite(generation); cursor.PutInt(BytePosGeneration, ( int )generation); }