/// <summary> /// Reallocates already allocated value and produces reference to it. /// </summary> /// <param name="reference">Reference to the already allocated value</param> /// <param name="newValue">New value to allocate</param> /// <returns>Reference to reallocated value</returns> public DbItemReference Reallocate(DbItemReference reference, TValue newValue) { return(_memoryManager.Reallocate(reference, _valueSerializer.Serialize(newValue))); }