add some missing matovr full updates

This commit is contained in:
UbitUmarov
2023-12-12 21:15:58 +00:00
parent 4a3cfd1004
commit 23daf5340b
9 changed files with 56 additions and 31 deletions

View File

@@ -27,6 +27,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace OpenSim.Framework
@@ -170,7 +171,7 @@ namespace OpenSim.Framework
{
lock (m_syncRoot)
{
if (m_array == null)
if (m_array is null)
{
if(m_dict.Count == 0)
return Array.Empty<TValue>();
@@ -180,5 +181,11 @@ namespace OpenSim.Framework
return m_array;
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Span<TValue> GetSpan()
{
return new Span<TValue>(GetArray());
}
}
}