MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / clone

Method clone

GPRS/ByteVector.cpp:94–99  ·  view source on GitHub ↗

Make a full memory copy of other. We clone only the filled in area, not the unused allocated area.

Source from the content-addressed store, hash-verified

92// Make a full memory copy of other.
93// We clone only the filled in area, not the unused allocated area.
94void ByteVector::clone(const ByteVector &other)
95{
96 clear();
97 init(other.size());
98 memcpy(mStart,other.mStart,other.size());
99}
100
101// Make this a copy of other.
102// It it owns memory, share it using refcnts.

Callers 9

RLCRawBlockMethod · 0.80
send1DataFrameMethod · 0.80
delayVectorFunction · 0.80
decodeTCH_GSMMethod · 0.80
parseMethod · 0.80
TLUserDataMethod · 0.80
delayVectorFunction · 0.80
setPcoFunction · 0.80
readLVasBVMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected