Home
last modified time | relevance | path

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

/external/clang/lib/Lex/
DScratchBuffer.cpp27 BytesUsed = ScratchBufSize; in ScratchBuffer()
36 if (BytesUsed+Len+2 > ScratchBufSize) in getToken()
41 CurBuffer[BytesUsed++] = '\n'; in getToken()
44 DestPtr = CurBuffer+BytesUsed; in getToken()
47 memcpy(CurBuffer+BytesUsed, Buf, Len); in getToken()
50 BytesUsed += Len+1; in getToken()
55 CurBuffer[BytesUsed-1] = '\0'; in getToken()
57 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1); in getToken()
72 BytesUsed = 1; in AllocScratchBuffer()
/external/llvm/lib/Support/
Draw_ostream.cpp363 size_t BytesUsed = Fmt.print(OutBufCur, BufferBytesLeft); in operator <<() local
366 if (BytesUsed <= BufferBytesLeft) { in operator <<()
367 OutBufCur += BytesUsed; in operator <<()
373 NextBufferSize = BytesUsed; in operator <<()
385 size_t BytesUsed = Fmt.print(V.data(), NextBufferSize); in operator <<() local
388 if (BytesUsed <= NextBufferSize) in operator <<()
389 return write(V.data(), BytesUsed); in operator <<()
392 assert(BytesUsed > NextBufferSize && "Didn't grow buffer!?"); in operator <<()
393 NextBufferSize = BytesUsed; in operator <<()
/external/clang/include/clang/Lex/
DScratchBuffer.h29 unsigned BytesUsed; variable