Lines Matching defs:BufferSize
398 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize,
400 if (BufferSize + (End - Start) > BufferCapacity) {
405 (unsigned)(BufferSize + (End - Start)));
407 memcpy(NewBuffer, Buffer, BufferSize);
415 memcpy(Buffer + BufferSize, Start, End - Start);
416 BufferSize += End-Start;
421 unsigned &BufferSize, unsigned &BufferCapacity) {
425 Buffer, BufferSize, BufferCapacity);
429 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize,
433 Buffer, BufferSize, BufferCapacity);
440 BufferSize(0), BufferCapacity(0)
448 BufferSize = Other.BufferSize;
453 BufferSize = Other.BufferSize;
454 BufferCapacity = Other.BufferSize;
456 memcpy(Buffer, Other.Buffer, BufferSize);
464 if (Buffer && Other.Buffer && BufferCapacity >= Other.BufferSize) {
466 BufferSize = Other.BufferSize;
467 memcpy(Buffer, Other.Buffer, BufferSize);
480 BufferSize = 0;
487 BufferSize = Other.BufferSize;
492 BufferSize = Other.BufferSize;
493 BufferCapacity = BufferSize;
494 Buffer = static_cast<char *>(malloc(BufferSize));
495 memcpy(Buffer, Other.Buffer, BufferSize);
508 SavePointer(TL.getOpaqueData(), Buffer, BufferSize, BufferCapacity);
509 SaveSourceLocation(ColonColonLoc, Buffer, BufferSize, BufferCapacity);
520 SaveSourceLocation(IdentifierLoc, Buffer, BufferSize, BufferCapacity);
521 BufferSize, BufferCapacity);
532 SaveSourceLocation(NamespaceLoc, Buffer, BufferSize, BufferCapacity);
533 SaveSourceLocation(ColonColonLoc, Buffer, BufferSize, BufferCapacity);
543 SaveSourceLocation(AliasLoc, Buffer, BufferSize, BufferCapacity);
544 SaveSourceLocation(ColonColonLoc, Buffer, BufferSize, BufferCapacity);
553 SaveSourceLocation(ColonColonLoc, Buffer, BufferSize, BufferCapacity);
563 BufferSize = 0;
574 SaveSourceLocation(R.getBegin(), Buffer, BufferSize, BufferCapacity);
582 SavePointer(TSInfo->getTypeLoc().getOpaqueData(), Buffer, BufferSize,
593 Buffer, BufferSize, BufferCapacity);
603 BufferSize = 0;
612 BufferSize = Other.getDataLength();
629 void *Mem = Context.Allocate(BufferSize, llvm::alignOf<void *>());
630 memcpy(Mem, Buffer, BufferSize);