Lines Matching refs:usedBytes
202 size_t usedBytes = back.fBuffer->size() - back.fBytesFree; in makeSpace() local
203 size_t pad = align_up_pad(usedBytes, alignment); in makeSpace()
210 memset((void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes), 0, pad); in makeSpace()
211 usedBytes += pad; in makeSpace()
212 *offset = usedBytes; in makeSpace()
217 return (void*)(reinterpret_cast<intptr_t>(fBufferPtr) + usedBytes); in makeSpace()
255 size_t usedBytes = (fBlocks.empty()) ? 0 : fBlocks.back().fBuffer->size() - in makeSpaceAtLeast() local
257 size_t pad = align_up_pad(usedBytes, alignment); in makeSpaceAtLeast()
264 usedBytes = 0; in makeSpaceAtLeast()
270 memset(static_cast<char*>(fBufferPtr) + usedBytes, 0, pad); in makeSpaceAtLeast()
271 usedBytes += pad; in makeSpaceAtLeast()
277 *offset = usedBytes; in makeSpaceAtLeast()
283 return static_cast<char*>(fBufferPtr) + usedBytes; in makeSpaceAtLeast()