Change log | Collections | 0.3.0-preview.0
docs.unity3d.com

    Change log

    [0.3.0] - 2019-12-03

    New Features

    • Added fixed-size BitField32/64 bit array.

    Changes

    Removed the following deprecated API as announced in/before 0.1.1-preview:

    • Removed struct Concurrent and ToConcurrent() for NativeHashMap, NativeMultiHashMap and NativeQueue (replaced by the ParallelWriter API).
    • From NativeStream.cs: struct NativeStreamReader and struct NativeStreamWriter, replaced by struct NativeStream.Reader and struct NativeStream.Writer.
    • From NativeList.cs: ToDeferredJobArray() (replaced by AsDeferredJobArray() API).

    [0.2.0] - 2019-11-22

    This version requires Unity 2019.3 0b11+

    New Features

    • Added fixed-size UTF-8 NativeString in sizes of 32, 64, 128, 512, and 4096 bytes.
    • Added HPC# functions for float-to-string and string-to-float.
    • Added HPC# functions for int-to-string and string-to-int.
    • Added HPC# functions for UTF16-to-UTF8 and UTF8-to-UTF16.
    • New Native(Multi)HashMap.GetKeyValueArrays that will query keys and values at the same time into parallel arrays.
    • Added UnsafeStream, UnsafeHashMap, and UnsafeMultiHashMap, providing functionality of NativeStream container but without any safety mechanism (intended for advanced users only).
    • Added AddNoResize methods to NativeList. When it's known ahead of time that list won't grow, these methods won't try to resize. Rather exception will be thrown if capacity is insufficient.
    • Added ParallelWriter support for UnsafeList.
    • Added UnsafeList.TrimExcess to set capacity to actual number of elements in the container.
    • Added convenience blittable UnsafeList<T> managed container with unmanaged T constraint.

    Changes

    • UnsafeList.Resize now doesn't resize to lower capacity. User must call UnsafeList.SetCapacity to lower capacity of the list. This applies to all other containers based on UnsafeList.
    • Updated dependencies for this package.

    Fixes

    • Fixed NativeQueue pool leak.

    [0.1.1] - 2019-08-06

    Fixes

    • NativeHashMap.Remove(TKey key, TValueEQ value) is now supported in bursted code.
    • Adding deprecated NativeList.ToDeferredJobArray() back in - Use AsDeferredJobArray() instead. The deprecated function will be removed in 3 months. This can not be auto-upgraded prior to Unity 2019.3.
    • Fixing bug where TryDequeue on an empty NativeQueue that previously had enqueued elements could leave it in an invalid state where Enqueue would fail silently afterwards.

    Changes

    • Updated dependencies for this package.

    [0.1.0] - 2019-07-30

    New Features

    • NativeMultiHashMap.Remove(key, value) has been addded. It lets you remove all key & value pairs from the hashmap.
    • Added ability to dispose containers from job (DisposeJob).
    • Added UnsafeList.AddNoResize, and UnsafeList.AddRangeNoResize.
    • BlobString for storing string data in a blob

    Upgrade guide

    • Native*.Concurrent is renamed to Native*.ParallelWriter.
    • Native*.ToConcurrent() function is renamed to Native*.AsParallelWriter().
    • NativeStreamReader/Writer structs are subclassed and renamed to NativeStream.Reader/Writer (note: changelot entry added retroactively).

    Changes

    • Deprecated ToConcurrent, added AsParallelWriter instead.
    • Allocator is not an optional argument anymore, user must always specify the allocator.
    • Added Allocator to Unsafe*List container, and removed per method allocator argument.
    • Introduced memory intialization (NativeArrayOptions) argument to Unsafe*List constructor and Resize.

    Fixes

    • Fixed UnsafeList.RemoveRangeSwapBack when removing elements near the end of UnsafeList.
    • Fixed safety handle use in NativeList.AddRange.

    [0.0.9-preview.20] - 2019-05-24

    Changes

    • Updated dependencies for Unity.Collections.Tests

    [0.0.9-preview.19] - 2019-05-16

    New Features

    • JobHandle NativeList.Dispose(JobHandle dependency) allows Disposing the container from a job.
    • Exposed unsafe NativeSortExtension.Sort(T* array, int length) method for simpler sorting of unsafe arrays
    • Imporoved documentation for NativeList
    • Added CollectionHelper.WriteLayout debug utility

    Fixes

    • Fixes a NativeQueue alignment issue.

    [0.0.9-preview.18] - 2019-05-01

    Change tracking started with this version.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023