MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / checkWritable

Method checkWritable

lib/core/bytes.cc:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void Bytes::checkWritable()
98{
99 if (_data.use_count() != 1)
100 {
101 auto newData = createVector(size());
102 std::uninitialized_copy(cbegin(), cend(), newData->begin());
103 _data = newData;
104 _low = 0;
105 _high = newData->size();
106 }
107}
108
109void Bytes::adjustBounds(unsigned pos)
110{

Callers

nothing calls this directly

Calls 3

createVectorFunction · 0.85
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected