public void AllocatorBorrowTest1() { Allocator allocator = Allocator.Default; allocator.Borrow <int>(100, stackAlloc: true, (span, length) => { Assert.AreEqual(100, span.Length); for (int i = 0; i < length; i++) { Assert.AreEqual(0, span[i]); } span.Fill(2); for (int i = 0; i < length; i++) { Assert.AreEqual(2, span[i]); } }); }