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()
75 BytesUsed = 0; in AllocScratchBuffer()
/external/llvm/lib/Support/
Draw_ostream.cpp365 size_t BytesUsed = Fmt.print(OutBufCur, BufferBytesLeft); in operator <<() local
368 if (BytesUsed <= BufferBytesLeft) { in operator <<()
369 OutBufCur += BytesUsed; in operator <<()
375 NextBufferSize = BytesUsed; in operator <<()
387 size_t BytesUsed = Fmt.print(V.data(), NextBufferSize); in operator <<() local
390 if (BytesUsed <= NextBufferSize) in operator <<()
391 return write(V.data(), BytesUsed); in operator <<()
394 assert(BytesUsed > NextBufferSize && "Didn't grow buffer!?"); in operator <<()
395 NextBufferSize = BytesUsed; in operator <<()
/external/clang/include/clang/Lex/
DScratchBuffer.h29 unsigned BytesUsed; variable