public ManagedSveltoDictionary(uint size) { var dictionary = new SveltoDictionary <TKey, TValue, ManagedStrategy <FasterDictionaryNode <TKey> >, ManagedStrategy <TValue>, ManagedStrategy <int> >(size, Allocator.Managed); _dictionary = dictionary; }
public SharedSveltoDictionaryNative(uint size) { var dictionary = new SveltoDictionary <TKey, TValue, NativeStrategy <SveltoDictionaryNode <TKey> >, NativeStrategy <TValue>, NativeStrategy <int> >(size, Allocator.Persistent); _sharedDictionary = MemoryUtilities.Alloc <SveltoDictionary <TKey, TValue, NativeStrategy <SveltoDictionaryNode <TKey> >, NativeStrategy <TValue>, NativeStrategy <int> > >(1, Allocator.Persistent); _dictionary = dictionary; }
public SharedSveltoDictionaryNative(uint size, Allocator nativeAllocator) { var dictionary = new SveltoDictionary <TKey, TValue, NativeStrategy <FasterDictionaryNode <TKey> >, NativeStrategy <TValue>, NativeStrategy <int> >( size, nativeAllocator); int structSize = Marshal.SizeOf(dictionary); _sharedDictionary = MemoryUtilities.Alloc((uint)structSize, Allocator.Persistent); _dictionary = dictionary; }
public SveltoDictionaryNative(uint size, Allocator nativeAllocator) { _dictionary = new SveltoDictionary <TKey, TValue, NativeStrategy <FasterDictionaryNode <TKey> >, NativeStrategy <TValue> >( size, nativeAllocator); }
public SveltoDictionaryDebugProxy (SveltoDictionary <TKey, TValue, TKeyStrategy, TValueStrategy, TBucketStrategy> dic) { _dic = dic; }
public SveltoDictionaryUint() { _sveltoDictionaryNativeImplementation = new SveltoDictionary <uint, TValue, NativeStrategy <FasterDictionaryNode <uint> >, ManagedStrategy <TValue> >(); }
ReadonlySveltoDictionaryNative (SveltoDictionary <TKey, TValue, NativeStrategy <FasterDictionaryNode <TKey> >, NativeStrategy <TValue>, NativeStrategy <int> > dic) { _dictionary = dic; }
public ReadonlySveltoDictionaryNative(uint size, Allocator nativeAllocator) { _dictionary = new SveltoDictionary <TKey, TValue, NativeStrategy <SveltoDictionaryNode <TKey> >, NativeStrategy <TValue>, NativeStrategy <int> >( size, nativeAllocator); }