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

Function GetTagBitmapLength

src/External/CascLib/src/CascOpenStorage.cpp:518–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518size_t GetTagBitmapLength(LPBYTE pbFilePtr, LPBYTE pbFileEnd, DWORD EntryCount)
519{
520 size_t nBitmapLength;
521
522 nBitmapLength = (EntryCount / 8) + ((EntryCount & 0x07) ? 1 : 0);
523 if((pbFilePtr + nBitmapLength) > pbFileEnd)
524 nBitmapLength = (pbFileEnd - pbFilePtr);
525
526 return nBitmapLength;
527}
528
529int CaptureDownloadHeader(CASC_DOWNLOAD_HEADER & DlHeader, LPBYTE pbFileData, size_t cbFileData)
530{

Callers 2

CaptureDownloadTagFunction · 0.85
LoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected