Searched refs:BytesUsed (Results 1 - 3 of 3) sorted by relevance

/external/clang/lib/Lex/
H A DScratchBuffer.cpp25 // Set BytesUsed so that the first call to getToken will require an alloc.
26 BytesUsed = ScratchBufSize;
35 if (BytesUsed+Len+2 > ScratchBufSize)
40 CurBuffer[BytesUsed++] = '\n';
43 DestPtr = CurBuffer+BytesUsed;
46 memcpy(CurBuffer+BytesUsed, Buf, Len);
49 BytesUsed += Len+1;
54 CurBuffer[BytesUsed-1] = '\0';
56 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1);
71 BytesUsed
[all...]
/external/clang/include/clang/Lex/
H A DScratchBuffer.h29 unsigned BytesUsed; member in class:clang::ScratchBuffer
/external/llvm/lib/Support/
H A Draw_ostream.cpp350 size_t BytesUsed = Fmt.print(OutBufCur, BufferBytesLeft); local
353 if (BytesUsed <= BufferBytesLeft) {
354 OutBufCur += BytesUsed;
360 NextBufferSize = BytesUsed;
372 size_t BytesUsed = Fmt.print(V.data(), NextBufferSize); local
374 // If BytesUsed fit into the vector, we win.
375 if (BytesUsed <= NextBufferSize)
376 return write(V.data(), BytesUsed);
379 assert(BytesUsed > NextBufferSize && "Didn't grow buffer!?");
380 NextBufferSize = BytesUsed;
[all...]

Completed in 807 milliseconds