MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / Add

Method Add

rEFIt_UEFI/cpp_foundation/XArray.h:280–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278/* Add(TYPE, size_t) */
279template<class TYPE>
280size_t XArray<TYPE>::Add(const TYPE newElement, size_t count)
281{
282// XArray_DBG("size_t XArray<TYPE>::Add(const TYPE newElement, size_t count) -> Enter. count=%d _Len=%d _Size=%d\n", count, m_len, m_size);
283 size_t i;
284
285 CheckSize(m_len+count);
286 for ( i=0 ; i<count ; i++ ) {
287 m_data[m_len+i] = newElement;
288 }
289 m_len += count;
290 return m_len-count;
291}
292
293/* Add(TYPE *, size_t) */
294template<class TYPE>

Callers 13

LogSmbiosDataFunction · 0.45
XArray_testsFunction · 0.45
XStringArray_testsFunction · 0.45
ScanVolumeFunction · 0.45
FillinKextPatchesFunction · 0.45
FillinCustomEntryFunction · 0.45
GetEarlyUserSettingsFunction · 0.45
GetListOfThemesFunction · 0.45
AddDefaultMenuMethod · 0.45
AddLegacyEntryFunction · 0.45
AddCloverEntryFunction · 0.45

Calls

no outgoing calls

Tested by 2

XArray_testsFunction · 0.36
XStringArray_testsFunction · 0.36