Lines Matching refs:cbPattern
124 size_t cbPattern;
541 static PVDPATTERN tstVDIoPatternCreate(const char *pcszName, size_t cbPattern);
1564 size_t cbPattern = 0;
1568 cbPattern = paScriptArgs[0].u64;
1597 rc = VDIoRndCreate(&pGlob->pIoRnd, cbPattern, uSeed);
1622 size_t cbPattern = 0;
1627 cbPattern = paScriptArgs[1].u64;
1633 pPattern = tstVDIoPatternCreate(pcszName, RT_ALIGN_Z(cbPattern, sizeof(uint64_t)));
1639 while (pPattern->cbPattern > 0)
1642 pPattern->cbPattern -= sizeof(uint64_t);
1645 pPattern->cbPattern = cbPattern; /* Set to the desired size. (could be unaligned) */
1672 uint64_t cbPattern = 0;
1677 rc = RTFileGetSize(hFile, &cbPattern);
1680 pPattern = tstVDIoPatternCreate(pcszName, (size_t)cbPattern);
1683 rc = RTFileRead(hFile, pPattern->pvPattern, (size_t)cbPattern, NULL);
2649 * @param cbPattern Size of the pattern buffer.
2651 static PVDPATTERN tstVDIoPatternCreate(const char *pcszName, size_t cbPattern)
2655 void *pvPattern = RTMemAllocZ(cbPattern);
2661 pPattern->cbPattern = cbPattern;
2686 if (cb > pPattern->cbPattern)