MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / CaptureByteArray

Function CaptureByteArray

src/External/CascLib/src/common/Common.cpp:141–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141LPBYTE CaptureByteArray(LPBYTE pbDataPtr, LPBYTE pbDataEnd, size_t nLength, LPBYTE pbOutput)
142{
143 // Is there enough data?
144 if((pbDataPtr + nLength) > pbDataEnd)
145 return NULL;
146
147 // Give data
148 memcpy(pbOutput, pbDataPtr, nLength);
149
150 // Return the pointer to data following after the integer
151 return pbDataPtr + nLength;
152}
153
154LPBYTE CaptureContentKey(LPBYTE pbDataPtr, LPBYTE pbDataEnd, PCONTENT_KEY * PtrCKey)
155{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected