Lines Matching refs:cbPattern
35 size_t cbPattern;
40 int VDIoRndCreate(PPVDIORND ppIoRnd, size_t cbPattern, uint64_t uSeed)
49 pIoRnd->pbPattern = (uint8_t *)RTMemPageAllocZ(cbPattern);
54 pIoRnd->cbPattern = cbPattern;
60 RTRandAdvBytes(pIoRnd->hRand, pIoRnd->pbPattern, cbPattern);
64 RTMemPageFree(pIoRnd->pbPattern, cbPattern);
86 RTMemPageFree(pIoRnd->pbPattern, pIoRnd->cbPattern);
96 if (cb > pIoRnd->cbPattern - 512)
99 *ppv = pIoRnd->pbPattern + RT_ALIGN_64(RTRandAdvU64Ex(pIoRnd->hRand, 0, pIoRnd->cbPattern - cb - 512), 512);