NativeMultiHashMap.GetUnsafeBucketData Example Usage in a Job

IJobNativeMultiHashMapMergedSharedKeyIndices was deprecated and the changelog says that the new NativeMultiHashMap.GetUnsafeBucketData can be used instead.

I looked in the ECS examples and could not find anything.

Does anyone have an example of how to use NativeMultiHashMap.GetUnsafeBucketData?

Just open NativeHashMap.cs and look at deprecated interfaces, as they all use GetUnsafeBucketData. Change log suggest you - copy that implementation if you want to use them. Or write your own if required, as it just thread-safe buckets of data. Each bucket can be processed concurrently with other buckets, and all key/value pairs in each bucket must be processed individually (in sequential order) by a single thread.