Sets all items to the given value The value to assign to all the collection items.
| 288 | /// </summary> |
| 289 | /// <param name="value">The value to assign to all the collection items.</param> |
| 290 | void SetAll(const bool value) |
| 291 | { |
| 292 | if (_count != 0) |
| 293 | Platform::MemorySet(_allocation.Get(), ToItemCount(_count) * sizeof(ItemType), value ? MAX_uint32 : 0); |
| 294 | } |
| 295 | |
| 296 | /// <summary> |
| 297 | /// Adds the specified item to the collection. |