Heya, I want to replicate this method on my own native containers but I'm not sure how it actually works, is it just the invalid allocator or is there something else? The method on the NativeList also increments the pointer by one and mentions something about a job using that, so do I have to make my own custom job or does it just know?
#How does AsDeferredJobArray actually work?
1 messages · Page 1 of 1 (latest)
it offsets the pointer by 1 byte
and when scheduling a job they check that the pointer is unaligned
and use that to correct it
and yes you can reimplement this, it works fine
and what of the invalid allocator?
just means it can't be disposed from that native array basically
though now that you mention it, i think actually now they check the allocator is invalid
i think there was a bug a long time ago when you had an array of bytes
it always appeared misaligned and was marked as deferred
[1.2.1] - 2022-02-17
Add version 1.2.1 by name.
Fixed
NativeList.AsDeferredJobArray allocator label is changed to Allocator.Invalid to infer that the array is in list mode.```
yeah ^_^
think it used to be None
which broke using byte[] as a native array with the None allocator
anyway some random history