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

/external/clang/lib/Lex/
H A DScratchBuffer.cpp26 // Set BytesUsed so that the first call to getToken will require an alloc.
27 BytesUsed = ScratchBufSize;
36 if (BytesUsed+Len+2 > ScratchBufSize)
41 CurBuffer[BytesUsed++] = '\n';
44 DestPtr = CurBuffer+BytesUsed;
47 memcpy(CurBuffer+BytesUsed, Buf, Len);
50 BytesUsed += Len+1;
55 CurBuffer[BytesUsed-1] = '\0';
57 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1);
72 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.cpp363 size_t BytesUsed = Fmt.print(OutBufCur, BufferBytesLeft); local
366 if (BytesUsed <= BufferBytesLeft) {
367 OutBufCur += BytesUsed;
373 NextBufferSize = BytesUsed;
385 size_t BytesUsed = Fmt.print(V.data(), NextBufferSize); local
387 // If BytesUsed fit into the vector, we win.
388 if (BytesUsed <= NextBufferSize)
389 return write(V.data(), BytesUsed);
392 assert(BytesUsed > NextBufferSize && "Didn't grow buffer!?");
393 NextBufferSize = BytesUsed;
[all...]

Completed in 249 milliseconds