Save and Load NativeArray to disk

Hey! Do you have an API to load and save the content of a NativeArray (T is blittable) from/to disk. In theory it should be just a copy of the memory block, because the data is packed sequentially in memory.

If there is not such an API, what would be the right way to do that as fast as possible?

Best Arne

Look at BinarySerialization.cs in the entities package, it has stuff to do exactly that.

2 Likes

Thx! Thats exactly what i was looking for :slight_smile:

I was also looking for this. :3c