In the in parameter blog article (https://blog.unity.com/engine-platform/in-parameters-in-burst), one recommendation for avoiding array element copies is to use ref UnsafeUtility.ArrayElementAsRef<T>(array.GetUnsafePtr(), index) when reading from a NativeArray<T>.
Is there a way to do the same for a NativeHashMap<int, T>? The GetUnsafePtr() method seems to be missing here, and I haven't figured out how to work around that.