| 329 | } |
| 330 | |
| 331 | var Factory::create() |
| 332 | { |
| 333 | if (initResult.wasOk()) |
| 334 | { |
| 335 | auto b = allocator->allocate((int)getElementSizeInBytes()); |
| 336 | |
| 337 | auto r = new ObjectReference(); |
| 338 | r->init(this, b, true); |
| 339 | singleObjects.add(r); |
| 340 | |
| 341 | return var(r); |
| 342 | } |
| 343 | |
| 344 | return var(); |
| 345 | } |
| 346 | |
| 347 | var Factory::createArray(int numElements) |
| 348 | { |
no test coverage detected