Initializes this object with a copy of the input.
| 7562 | |
| 7563 | // Initializes this object with a copy of the input. |
| 7564 | void InitCopy(const Element* array, size_t a_size) { |
| 7565 | Element* const copy = new Element[a_size]; |
| 7566 | CopyArray(array, a_size, copy); |
| 7567 | array_ = copy; |
| 7568 | size_ = a_size; |
| 7569 | clone_ = &NativeArray::InitCopy; |
| 7570 | } |
| 7571 | |
| 7572 | // Initializes this object with a reference of the input. |
| 7573 | void InitRef(const Element* array, size_t a_size) { |
nothing calls this directly
no test coverage detected