public void AllocateAndAutoDispose <T>(ref NativeQueue <T> native, Allocator allocator) where T : struct { native = new NativeQueue <T>(allocator); EnqueueNative(new NativeQueueWrapper <T>(native), allocator); }
public NativeQueueWrapper(NativeQueue <T> queue) { this.queue = queue; }