MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Duplicate

Method Duplicate

code/icarus/BlockStream.cpp:176–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174*/
175
176CBlockMember *CBlockMember::Duplicate( CIcarus* icarus )
177{
178 CBlockMember *newblock = new CBlockMember;
179
180 if ( newblock == NULL )
181 return NULL;
182
183 newblock->SetData( m_data, m_size, icarus );
184 newblock->SetSize( m_size );
185 newblock->SetID( m_id );
186
187 return newblock;
188}
189
190/*
191===================================================================================================

Callers

nothing calls this directly

Calls 7

SetDataMethod · 0.45
SetSizeMethod · 0.45
SetIDMethod · 0.45
CreateMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
AddMemberMethod · 0.45

Tested by

no test coverage detected