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

Function IsPartHeader

src/External/CascLib/src/common/FileStream.cpp:1476–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1474// Local functions - partial stream support
1475
1476static bool IsPartHeader(PPART_FILE_HEADER pPartHdr)
1477{
1478 // Version number must be 2
1479 if(pPartHdr->PartialVersion == 2)
1480 {
1481 // GameBuildNumber must be an ASCII number
1482 if(isdigit(pPartHdr->GameBuildNumber[0]) && isdigit(pPartHdr->GameBuildNumber[1]) && isdigit(pPartHdr->GameBuildNumber[2]))
1483 {
1484 // Block size must be power of 2
1485 if((pPartHdr->BlockSize & (pPartHdr->BlockSize - 1)) == 0)
1486 return true;
1487 }
1488 }
1489
1490 return false;
1491}
1492
1493static DWORD PartStream_CheckFile(TBlockStream * pStream)
1494{

Callers 1

PartStream_LoadBitmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected