MCPcopy Create free account
hub / github.com/Kitware/VTK / WritePointer

Method WritePointer

Common/Core/vtkBitArray.cxx:93–107  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

91
92//------------------------------------------------------------------------------
93vtkBitArray::ValueType* vtkBitArray::WritePointer(vtkIdType id, vtkIdType number)
94{
95 vtkIdType newSize = id + number;
96 if (newSize > this->Size)
97 {
98 this->ResizeAndExtend(newSize);
99 }
100 if ((--newSize) > this->MaxId)
101 {
102 this->MaxId = newSize;
103 this->InitializeUnusedBitsInLastByte();
104 }
105 this->DataChanged();
106 return this->Array + id / 8;
107}
108
109//------------------------------------------------------------------------------
110// This method lets the user specify data to be held by the array. The

Callers

nothing calls this directly

Calls 3

ResizeAndExtendMethod · 0.95
DataChangedMethod · 0.95

Tested by

no test coverage detected