MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / assign

Method assign

deps/SDL2/src/hidapi/android/hid.cpp:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 void assign( const uint8_t *pData, size_t nSize )
148 {
149 if ( nSize > m_nAllocated )
150 {
151 delete[] m_pData;
152 m_pData = new uint8_t[ nSize ];
153 m_nAllocated = nSize;
154 }
155
156 m_nSize = nSize;
157 memcpy( m_pData, pData, nSize );
158 }
159
160 void clear()
161 {

Callers 6

ReadFileFunction · 0.45
addIncludeTextMethod · 0.45
TStringAtomMapMethod · 0.45
closeMethod · 0.45
emplace_backMethod · 0.45
ProcessFeatureReportMethod · 0.45

Calls 1

memcpyFunction · 0.85

Tested by 1

ReadFileFunction · 0.36